From: Robert Bradshaw Date: Tue, 21 Oct 2008 22:41:36 +0000 (-0700) Subject: Fix arithmatic with unsigned and floating point X-Git-Tag: 0.9.9.2.beta~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0d916b99ef1184a6dd5c6db975bbade39bbfdc4;p=cython.git Fix arithmatic with unsigned and floating point --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 0a2f8182..9e4a3c20 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1230,6 +1230,10 @@ sign_and_rank_to_type = { (1, 6): c_float_type, (1, 7): c_double_type, (1, 8): c_longdouble_type, +# In case we're mixing unsigned ints and floats... + (0, 6): c_float_type, + (0, 7): c_double_type, + (0, 8): c_longdouble_type, } modifiers_and_name_to_type = {