Fix arithmatic with unsigned and floating point
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 21 Oct 2008 22:41:36 +0000 (15:41 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 21 Oct 2008 22:41:36 +0000 (15:41 -0700)
Cython/Compiler/PyrexTypes.py

index 0a2f818286be3949ea12db13e29924b854f0a835..9e4a3c2020f7e288e791b478815ef2e7ec728008 100644 (file)
@@ -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 = {