Eolian: Support of unsigned short as int in va_arg
authorYossi Kantor <yossi.kantor@samsung.com>
Mon, 10 Mar 2014 11:35:11 +0000 (13:35 +0200)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 11 Mar 2014 05:37:47 +0000 (07:37 +0200)
src/bin/eolian/eo1_generator.c

index 3853a72..2f3b8e0 100644 (file)
@@ -331,8 +331,10 @@ _varg_upgr(const char *stype)
 {
    if (!strcmp(stype, "Eina_Bool") ||
      !strcmp(stype, "char") ||
-     !strcmp(stype, "short"))
+     !strcmp(stype, "short") ||
+     !strcmp(stype, "unsigned short"))
      return "int";
+
    return stype;
 }