summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-06 15:17:52 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-06 15:17:52 (GMT)
commite3889da0762776008260a8d3c9489c6aa00aa844 (patch)
tree9a65dfbc588630196f14590ce59242f63ecc3a8b /Tools
parent56cdce3070605422a655b8da8af23622ed876dad (diff)
downloadcpython-e3889da0762776008260a8d3c9489c6aa00aa844.zip
cpython-e3889da0762776008260a8d3c9489c6aa00aa844.tar.gz
cpython-e3889da0762776008260a8d3c9489c6aa00aa844.tar.bz2
Make a distinction between shorts and unsigned shorts.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenType.py1
-rw-r--r--Tools/bgen/bgen/macsupport.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py
index b63a06f..ac3e74d 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 05d584d..5259f05 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")