Author: David Schneider <[email protected]>
Branch: disable_merge_different_int_types
Changeset: r49905:96f224c56d33
Date: 2011-11-26 15:33 +0100
http://bitbucket.org/pypy/pypy/changeset/96f224c56d33/

Log:    translation fix for rmd5 and rsha

diff --git a/pypy/rlib/rmd5.py b/pypy/rlib/rmd5.py
--- a/pypy/rlib/rmd5.py
+++ b/pypy/rlib/rmd5.py
@@ -318,7 +318,7 @@
         """
 
         leninBuf = len(inBuf)
-        self.count += leninBuf
+        self.count += r_uint(leninBuf)
         index = len(self.input)
         partLen = 64 - index
         assert partLen > 0
diff --git a/pypy/rlib/rsha.py b/pypy/rlib/rsha.py
--- a/pypy/rlib/rsha.py
+++ b/pypy/rlib/rsha.py
@@ -224,7 +224,7 @@
         """
 
         leninBuf = len(inBuf)
-        self.count += leninBuf
+        self.count += r_uint(leninBuf)
         index = len(self.input)
         partLen = 64 - index
         assert partLen > 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to