mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
bdeebc992f
commit
338cb9fa0d
2
int64.c
2
int64.c
@ -49,7 +49,7 @@ void uint64_decimal(uint64 x, char *buffer)
|
|||||||
uint64 uint64_make(unsigned long hi, unsigned long lo)
|
uint64 uint64_make(unsigned long hi, unsigned long lo)
|
||||||
{
|
{
|
||||||
uint64 y;
|
uint64 y;
|
||||||
y.hi = (hi + (lo >> 32)) & 0xFFFFFFFFU;
|
y.hi = hi & 0xFFFFFFFFU;
|
||||||
y.lo = lo & 0xFFFFFFFFU;
|
y.lo = lo & 0xFFFFFFFFU;
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user