Permalink
Browse files

Further correction: on reflection, after examining all the call

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.


git-svn-id: svn://svn.tartarus.org/sgt/putty@8185 cda61777-01e9-0310-a592-d414129be87e
  • Loading branch information...
1 parent 68fdd3e commit ccc1909733b32025dc2180e4cccb623743e99e23 simon committed Sep 16, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 int64.c
View
@@ -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;
}

0 comments on commit ccc1909

Please sign in to comment.