Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3889da

Browse files
committed
Make a distinction between shorts and unsigned shorts.
1 parent 56cdce3 commit e3889da

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/bgen/bgen/bgenType.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class OutputOnlyType(OutputOnlyMixIn, Type):
137137
void = None
138138
char = Type("char", "c")
139139
short = Type("short", "h")
140+
unsigned_short = Type("unsigned short", "H")
140141
int = Type("int", "i")
141142
long = Type("long", "l")
142143
unsigned_long = Type("unsigned long", "l")

Tools/bgen/bgen/macsupport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
UInt8 = Type("UInt8", "b")
2323
SInt8 = Type("SInt8", "b")
24-
UInt16 = Type("UInt16", "h")
24+
UInt16 = Type("UInt16", "H")
2525
SInt16 = Type("SInt16", "h")
2626
UInt32 = Type("UInt32", "l")
2727
SInt32 = Type("SInt32", "l")

0 commit comments

Comments
 (0)