From beca39aa87e5644c6d8210860037cb2220256b7a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 4 Oct 2010 22:02:41 +0200 Subject: spice codegen: fix copy-o, no such variable value --- python_modules/ptypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index 0ae57eca..9c4b7def 100644 --- a/python_modules/ptypes.py +++ b/python_modules/ptypes.py @@ -240,7 +240,7 @@ class EnumBaseType(Type): def c_enumname_by_name(self, name): if self.has_attr("prefix"): - return self.attributes["prefix"][0] + self.names[value] + return self.attributes["prefix"][0] + name return codegen.prefix_underscore_upper(self.name.upper(), name) def is_primitive(self): -- cgit