From f0d916b99ef1184a6dd5c6db975bbade39bbfdc4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 21 Oct 2008 15:41:36 -0700 Subject: [PATCH] Fix arithmatic with unsigned and floating point --- Cython/Compiler/PyrexTypes.py | 4 ++++ 1 file changed, 4 insertions(+) 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 = { -- 2.26.2