From 3d68e17d934b4a9af36c586f2cddf4eb19d1069b Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 23 Jun 2015 00:20:22 -0500
Subject: [PATCH] Minor type inference fix

---
 loopy/expression.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loopy/expression.py b/loopy/expression.py
index 2afb803b9..e4c89c735 100644
--- a/loopy/expression.py
+++ b/loopy/expression.py
@@ -81,7 +81,7 @@ class TypeInferenceMapper(CombineMapper):
 
             if result.isbuiltin and other.isbuiltin:
                 if (result, other) in [
-                        (np.int32, np.float32), (np.int32, np.float32)]:
+                        (np.int32, np.float32), (np.float32, np.int32)]:
                     # numpy makes this a double. I disagree.
                     result = np.dtype(np.float32)
                 else:
-- 
GitLab