Skip to content

Commit

Permalink
Further correction: on reflection, after examining all the call
Browse files Browse the repository at this point in the history
sites for uint64_make(), we _shouldn't_ attempt to preserve high
bits in the low-order argument; it turns out not to be what the call
sites want.

[originally from svn r8185]
  • Loading branch information
sgtatham committed Sep 16, 2008
1 parent bdeebc9 commit 338cb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion int64.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void uint64_decimal(uint64 x, char *buffer)
uint64 uint64_make(unsigned long hi, unsigned long lo)
{
uint64 y;
y.hi = (hi + (lo >> 32)) & 0xFFFFFFFFU;
y.hi = hi & 0xFFFFFFFFU;
y.lo = lo & 0xFFFFFFFFU;
return y;
}
Expand Down

0 comments on commit 338cb9f

Please sign in to comment.