summaryrefslogtreecommitdiff
path: root/n/avr/modules/utils/utils.host.c
diff options
context:
space:
mode:
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)
;
}