summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/timespecdividebyinteger.c3
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;
/*