From: Mohamad Al-Jaf mohamadaljaf@gmail.com
Needed to compile windows.perception.spatial.surfaces.idl. --- tools/widl/typetree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/widl/typetree.c b/tools/widl/typetree.c index e867ea4d26f..e6304f311dc 100644 --- a/tools/widl/typetree.c +++ b/tools/widl/typetree.c @@ -222,6 +222,9 @@ static size_t append_type_signature(char **buf, size_t *len, size_t pos, type_t assert(type_basic_get_sign(type) > 0); /* signature string for signed char isn't specified */ n += strappend(buf, len, pos + n, "u1"); return n; + case TYPE_BASIC_INT16: + n += strappend(buf, len, pos + n, type_basic_get_sign(type) <= 0 ? "i2" : "u2"); + return n; case TYPE_BASIC_FLOAT: n += strappend(buf, len, pos + n, "f4"); return n; @@ -231,7 +234,6 @@ static size_t append_type_signature(char **buf, size_t *len, size_t pos, type_t case TYPE_BASIC_BYTE: n += strappend(buf, len, pos + n, "u1"); return n; - case TYPE_BASIC_INT16: case TYPE_BASIC_INT3264: case TYPE_BASIC_CHAR: case TYPE_BASIC_HYPER: