diff options
author | Alon Levy <alevy@redhat.com> | 2010-10-04 22:02:41 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:50 +0100 |
commit | 005ecaa7d6a085d7210140553d680341cf72a227 (patch) | |
tree | b52e06cad76200472058a25b30a1d48f8cc6c56a /python_modules/ptypes.py | |
parent | aa7a086933c8b03d2f7f78874342a53719a24fa5 (diff) | |
download | spice-protocol-005ecaa7d6a085d7210140553d680341cf72a227.tar.gz spice-protocol-005ecaa7d6a085d7210140553d680341cf72a227.tar.xz spice-protocol-005ecaa7d6a085d7210140553d680341cf72a227.zip |
spice codegen: fix copy-o, no such variable value
Diffstat (limited to 'python_modules/ptypes.py')
-rw-r--r-- | python_modules/ptypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index 0ae57ec..9c4b7de 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): |