]> granicus.if.org Git - python/commitdiff
Make a distinction between shorts and unsigned shorts.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 6 Jul 2000 15:17:52 +0000 (15:17 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 6 Jul 2000 15:17:52 +0000 (15:17 +0000)
Tools/bgen/bgen/bgenType.py
Tools/bgen/bgen/macsupport.py

index b63a06f98f02a855193ffcfcbfd7151340cebfe2..ac3e74da07b0e526756ab90ad8d4af2b134242fb 100644 (file)
@@ -137,6 +137,7 @@ class OutputOnlyType(OutputOnlyMixIn, Type):
 void = None
 char = Type("char", "c")
 short = Type("short", "h")
+unsigned_short = Type("unsigned short", "H")
 int = Type("int", "i")
 long = Type("long", "l")
 unsigned_long = Type("unsigned long", "l")
index 05d584dbd845e484b5903aed8913fc9d279c5918..5259f057975a5beba1c3321882fe7ad154b08921 100644 (file)
@@ -21,7 +21,7 @@ TextEncoding = Type("TextEncoding", "l")
 
 UInt8 = Type("UInt8", "b")
 SInt8 = Type("SInt8", "b")
-UInt16 = Type("UInt16", "h")
+UInt16 = Type("UInt16", "H")
 SInt16 = Type("SInt16", "h")
 UInt32 = Type("UInt32", "l")
 SInt32 = Type("SInt32", "l")