aboutgitcodelistschat:MatrixIRC
path: root/cooker/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cooker/emit.c')
-rw-r--r--cooker/emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cooker/emit.c b/cooker/emit.c
index 4303115..4be5d35 100644
--- a/cooker/emit.c
+++ b/cooker/emit.c
@@ -16,7 +16,7 @@
static const char *type_str[] = {
"UNDEF", "NONE",
- "INT", "U32", "U64", "LONG",
+ "USHORT", "INT", "U32", "U64", "LONG",
"STRING",
"STRUCT", "SELECT",
"PID",
@@ -331,6 +331,7 @@ static struct gluten_offset emit_data_do(struct gluten_ctx *g,
}
switch (type) {
+ case USHORT:
case INT:
if (add) {
*(int *)p |= value->v_int;