summaryrefslogtreecommitdiff
path: root/n/avr/modules/utils/utils.host.c
diff options
context:
space:
mode:
authorschodet2005-07-21 20:26:15 +0000
committerschodet2005-07-21 20:26:15 +0000
commitc2fdf1755f9302c9fcb13094983d6df05b1e06f7 (patch)
treeb3f895bff60e066bd0331bbf291183021cc33bcc /n/avr/modules/utils/utils.host.c
parent3947ce7c8a79883c964aa19d6c29988b565dd722 (diff)
Ajout du test pour les méthodes de byte.h.
Diffstat (limited to 'n/avr/modules/utils/utils.host.c')
-rw-r--r--n/avr/modules/utils/utils.host.c2
1 files changed, 1 insertions, 1 deletions
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)
;
}