From e36dc8e0bb659ccbf8db8b718d4e5cf4a4c972f2 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 20 Jun 2015 00:29:06 -0500
Subject: [PATCH] Minor complex-val code generation fix

---
 loopy/target/c/codegen/expression.py | 2 +-
 loopy/version.py                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/loopy/target/c/codegen/expression.py b/loopy/target/c/codegen/expression.py
index 0c25d5380..d54640b5d 100644
--- a/loopy/target/c/codegen/expression.py
+++ b/loopy/target/c/codegen/expression.py
@@ -373,7 +373,7 @@ class LoopyCCodeMapper(RecursiveMapper):
                 # This made it through type 'guessing' above, and it
                 # was concluded above (search for COMPLEX_GUESS_LOGIC),
                 # that nothing was lost by using single precision.
-                cast_type = "cfloat_t"
+                cast_type = "cfloat"
             else:
                 if dtype == np.complex128:
                     cast_type = "cdouble"
diff --git a/loopy/version.py b/loopy/version.py
index 60f16185d..71911e957 100644
--- a/loopy/version.py
+++ b/loopy/version.py
@@ -25,4 +25,4 @@ VERSION = (2014, 1)
 VERSION_STATUS = ""
 VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS
 
-DATA_MODEL_VERSION = "v7"
+DATA_MODEL_VERSION = "v8"
-- 
GitLab