[rtems commit] uuid: make integer arithmetic conversion explicit
Gedare Bloom
gedare at rtems.org
Thu Sep 5 19:07:53 UTC 2013
Module: rtems
Branch: master
Commit: 36fdd0bcff28e9152cd62637deedbe1a7d7ab99c
Changeset: http://git.rtems.org/rtems/commit/?id=36fdd0bcff28e9152cd62637deedbe1a7d7ab99c
Author: Gedare Bloom <gedare at rtems.org>
Date: Thu Sep 5 14:50:46 2013 -0400
uuid: make integer arithmetic conversion explicit
Upcast multiplication to 64-bit integer arithmetic.
---
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 0599637..4d10ff3 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;
More information about the vc
mailing list