Commits

Amaury Forgeot d'Arc committed c444392

in external function calls, automatic cast from SIZE_T to lltype.Unsigned

Comments (0)

Files changed (1)

pypy/rpython/lltypesystem/rffi.py

         if rarithmetic.r_int is not r_int:
             if result is INT:
                 return cast(lltype.Signed, res)
-            elif result is UINT:
+            elif result is UINT or result is SIZE_T:
                 return cast(lltype.Unsigned, res)
         return res
     wrapper._annspecialcase_ = 'specialize:ll'