[pypy-commit] pypy disable_merge_different_int_types: translation fix for rmd5 and rsha

bivab noreply at buildbot.pypy.org
Mon Nov 28 15:55:45 CET 2011


Author: David Schneider <david.schneider at picle.org>
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


More information about the pypy-commit mailing list