From 6731dd428d26602eb9428e8d6bf309b24bea5ad2 Mon Sep 17 00:00:00 2001 From: jkim Date: Wed, 28 Aug 2013 22:57:49 +0000 Subject: Fix a compiler warning. With this fix, a negative time can be converted to a struct timeval and back to the original nanoseconds correctly. --- sys/dev/drm2/drm_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm2/drm_irq.c b/sys/dev/drm2/drm_irq.c index 130c20f..3a60fa9 100644 --- a/sys/dev/drm2/drm_irq.c +++ b/sys/dev/drm2/drm_irq.c @@ -210,7 +210,7 @@ struct timeval ns_to_timeval(const int64_t nsec) { struct timeval tv; - uint32_t rem; + long rem; if (nsec == 0) { tv.tv_sec = 0; -- cgit v1.1