diff options
author | Gedare Bloom <gedare@rtems.org> | 2013-09-05 14:50:46 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-09-05 14:50:46 -0400 |
commit | 36fdd0bcff28e9152cd62637deedbe1a7d7ab99c (patch) | |
tree | c5e6e7789d9fab31ab4f8b153419436ca8b0fd22 /cpukit/libmisc/uuid | |
parent | imfs: use safe string functions (diff) | |
download | rtems-36fdd0bcff28e9152cd62637deedbe1a7d7ab99c.tar.bz2 |
uuid: make integer arithmetic conversion explicit
Upcast multiplication to 64-bit integer arithmetic.
Diffstat (limited to 'cpukit/libmisc/uuid')
-rw-r--r-- | cpukit/libmisc/uuid/gen_uuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c index 059963764e..4d10ff3258 100644 --- a/cpukit/libmisc/uuid/gen_uuid.c +++ b/cpukit/libmisc/uuid/gen_uuid.c @@ -402,7 +402,7 @@ try_again: last = tv; } - clock_reg = tv.tv_usec*10 + adjustment; + clock_reg = ((uint64_t) tv.tv_usec)*10 + adjustment; clock_reg += ((uint64_t) tv.tv_sec)*10000000; clock_reg += (((uint64_t) 0x01B21DD2) << 32) + 0x13814000; |