[Spice-devel] [PATCH 04/13] spice codegen: fix copy-o, no such variable value

Hans de Goede hdegoede at redhat.com
Tue Dec 7 02:15:40 PST 2010


Ack.

On 12/06/2010 05:15 PM, Alon Levy wrote:
> ---
>   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):


More information about the Spice-devel mailing list