1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed 2b1220c

If we know it's a 32-bit integer, use directly 'uint32_t'.

  • Participants
  • Parent commits 72b5198
  • Branches default

Comments (0)

Files changed (1)

File demo/xclient.py

View file
 ffi.cdef("""
 
 typedef ... Display;
-typedef unsigned int Window;   /* 32-bit integer */
+typedef uint32_t Window;   /* 32-bit integer */
 
 typedef struct { int type; ...; } XEvent;