From b7ada8e1c8dc52589bdaecb4c1648d4eb6cf6641 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Thu, 4 Jun 2015 17:01:19 -0700 Subject: NS_TO_SEC must be LL to prevent overflow on 32 bit binaries. --- timespec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timespec.h b/timespec.h index 3d5f4cef..d45856ee 100644 --- a/timespec.h +++ b/timespec.h @@ -18,8 +18,8 @@ * * NOTE: this normalization is not the same as ntpd uses */ -#define NS_IN_SEC 1000000000 -#define MS_IN_SEC 1000000 +#define NS_IN_SEC 1000000000LL +#define MS_IN_SEC 1000000LL /* return the difference between timespecs in nanoseconds * int may be too small, 32 bit long is too small, floats are too imprecise, -- cgit v1.2.1