From a58b9913182f7eb422f9f600fb18577545b1c4eb Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 22 Jun 2009 19:30:36 -0400 Subject: [PATCH] Fix missing self in CCodeMapper. --- pymbolic/mapper/c_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymbolic/mapper/c_code.py b/pymbolic/mapper/c_code.py index 26fa4e3..d30849e 100644 --- a/pymbolic/mapper/c_code.py +++ b/pymbolic/mapper/c_code.py @@ -18,7 +18,7 @@ class CCodeMapper(SimplifyingSortingStringifyMapper): import numpy if isinstance(x, complex): return "std::complex<%s>(%s, %s)" % ( - complex_constant_base_type, + self.complex_constant_base_type, self.constant_mapper(x.real), self.constant_mapper(x.imag)) else: -- GitLab