[vlc-commits] 64bit bug. Enum should be uint, not ulong.

Geoff Salmon git at videolan.org
Tue Sep 13 17:24:04 CEST 2011


vlc/python | branch: master | Geoff Salmon <geoff.salmon at gmail.com> | Sun Aug 14 11:44:03 2011 -0400| [9d9fd7286818f807c08d1f6a129a624a07f98def] | committer: Olivier Aubert

64bit bug. Enum should be uint, not ulong.

Signed-off-by: Olivier Aubert <olivier.aubert at liris.cnrs.fr>

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=9d9fd7286818f807c08d1f6a129a624a07f98def
---

 generate.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/generate.py b/generate.py
index df7225b..32feeab 100755
--- a/generate.py
+++ b/generate.py
@@ -841,7 +841,7 @@ class PythonGenerator(_Generator):
         """Generate classes for all enum types.
         """
         self.output("""
-class _Enum(ctypes.c_ulong):
+class _Enum(ctypes.c_uint):
     '''(INTERNAL) Base class
     '''
     _enum_names_ = {}



More information about the vlc-commits mailing list