]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Further correction: on reflection, after examining all the call
authorSimon Tatham <anakin@pobox.com>
Tue, 16 Sep 2008 22:56:08 +0000 (22:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 16 Sep 2008 22:56:08 +0000 (22:56 +0000)
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]

int64.c

diff --git a/int64.c b/int64.c
index 664ce49e4cedd77e4e02f077f1dcd0d419bcf8ef..b1c986ce08860e5f91a2bbd7b8bd416d3e3e5cf0 100644 (file)
--- a/int64.c
+++ b/int64.c
@@ -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;
 }