1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

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.

[originally from svn r8185]
This commit is contained in:
Simon Tatham 2008-09-16 22:56:08 +00:00
parent bdeebc992f
commit 338cb9fa0d

View File

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