Add 'byte' alias for uint8

This commit is contained in:
DankParrot 2020-08-03 18:39:29 -07:00
parent 7c5beda081
commit 483d1f2e39
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def get_type_size(type):
return 4
elif type == 'int16' or type == 'uint16':
return 2
elif type == 'int8' or type == 'uint8' or type == 'bool':
elif type == 'int8' or type == 'uint8' or type == 'byte' or type == 'bool':
return 1
elif type == 'string':
return count

View File

@ -21,6 +21,7 @@
int16 : int16_t
uint8 : uint8_t
int8 : int8_t
byte : uint8_t
bool : uint8_t
}
}