From c2fdf1755f9302c9fcb13094983d6df05b1e06f7 Mon Sep 17 00:00:00 2001 From: schodet Date: Thu, 21 Jul 2005 20:26:15 +0000 Subject: Ajout du test pour les méthodes de byte.h. --- n/avr/modules/utils/utils.host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'n/avr/modules/utils/utils.host.c') diff --git a/n/avr/modules/utils/utils.host.c b/n/avr/modules/utils/utils.host.c index 1173eee..fcc93bf 100644 --- a/n/avr/modules/utils/utils.host.c +++ b/n/avr/modules/utils/utils.host.c @@ -38,7 +38,7 @@ utils_delay (double s) struct timespec ts; assert (s > 0.0); ts.tv_sec = (long int) s; - ts.tv_nsec = (s - (long int) s) * 1000000000l; + ts.tv_nsec = (long int) (s - (long int) s) * 1000000000l; while (nanosleep (&ts, &ts) == -1 && errno == EINTR) ; } -- cgit v1.2.3