From e3889da0762776008260a8d3c9489c6aa00aa844 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 6 Jul 2000 15:17:52 +0000 Subject: [PATCH] Make a distinction between shorts and unsigned shorts. --- Tools/bgen/bgen/bgenType.py | 1 + Tools/bgen/bgen/macsupport.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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") -- 2.40.0