diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-11-10 23:29:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-11-10 23:29:57 +0000 |
commit | 48f30272011261ee4fc4dbeb6c86ea6cf220059c (patch) | |
tree | a090eaf5b9631c648bbf65218f70fcdd576d9633 /cpukit/score/src/timespecdividebyinteger.c | |
parent | 2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-48f30272011261ee4fc4dbeb6c86ea6cf220059c.tar.bz2 |
2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1468/cpukit
* score/src/timespecdividebyinteger.c: Rework statement to ensure
64-bit multiplication is used.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/timespecdividebyinteger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/timespecdividebyinteger.c b/cpukit/score/src/timespecdividebyinteger.c index eecd7c4e30..34a719a577 100644 --- a/cpukit/score/src/timespecdividebyinteger.c +++ b/cpukit/score/src/timespecdividebyinteger.c @@ -34,7 +34,8 @@ void _Timespec_Divide_by_integer( * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ - t = time->tv_sec * TOD_NANOSECONDS_PER_SECOND; + t = time->tv_sec; + t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec; /* |