Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Fixing a possibly type conversion error in gettimeofday.c that would …
Browse files Browse the repository at this point in the history
…lead to incorrect subtracted timevals.
  • Loading branch information
QuinnDamerell committed Mar 20, 2017
1 parent 16c5ff8 commit fddd226
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libftl/gettimeofday/gettimeofday.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
#define USEC_TO_SEC(x) ((x) / USEC_IN_SEC)
#define USEC_TO_MSEC(x) ((x) / MSEC_IN_USEC)
#define MSEC_TO_SEC(x) ((x) / MSEC_IN_SEC)
#define MSEC_TO_USEC(x) ((x) * MSEC_IN_USEC)
#define MSEC_TO_NSEC(x) ((x) * MSEC_IN_NSEC)
#define SEC_TO_USEC(x) ((x) * USEC_IN_SEC)
#define SEC_TO_NSEC(x) ((x) * NSEC_IN_SEC)
#define MSEC_TO_USEC(x) (((uint64_t)x) * MSEC_IN_USEC)
#define MSEC_TO_NSEC(x) (((uint64_t)x) * MSEC_IN_NSEC)
#define SEC_TO_USEC(x) (((uint64_t)x) * USEC_IN_SEC)
#define SEC_TO_NSEC(x) (((uint64_t)x) * NSEC_IN_SEC)

#ifdef _WIN32
#include <Windows.h>
Expand Down

0 comments on commit fddd226

Please sign in to comment.