uuid: make integer arithmetic conversion explicit

Upcast multiplication to 64-bit integer arithmetic.
This commit is contained in:
Gedare Bloom
2013-09-05 14:50:46 -04:00
parent 8ee95e609f
commit 36fdd0bcff

View File

@@ -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;