From: Jack Jansen Date: Thu, 6 Jul 2000 15:17:52 +0000 (+0000) Subject: Make a distinction between shorts and unsigned shorts. X-Git-Tag: v2.0b1~1050 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3889da0762776008260a8d3c9489c6aa00aa844;p=python Make a distinction between shorts and unsigned shorts. --- diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py index b63a06f98f..ac3e74da07 100644 --- a/Tools/bgen/bgen/bgenType.py +++ b/Tools/bgen/bgen/bgenType.py @@ -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") diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py index 05d584dbd8..5259f05797 100644 --- a/Tools/bgen/bgen/macsupport.py +++ b/Tools/bgen/bgen/macsupport.py @@ -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")