diff --git a/c/xlib/type.c b/c/xlib/type.c index 0f6f8ca..60ed8be 100644 --- a/c/xlib/type.c +++ b/c/xlib/type.c @@ -27,7 +27,7 @@ s48_value s48_enter_symbol(char* name) { s48_value Bits_To_Symbols(unsigned long bits, SYMDESCR* table) { s48_value res = S48_NULL; char* name; - int val; + unsigned long val; int i = 0; S48_DECLARE_GC_PROTECT(1); @@ -62,7 +62,7 @@ unsigned long Symbol_To_Bit(s48_value Sym, SYMDESCR* table) { unsigned long res = 0; char* sym = s48_extract_symbol(Sym); int i; - for (i=0; table[i].val != 0 ;i++) { + for (i=0; table[i].name != (char*)0; i++) { if (strcmp(sym, table[i].name) == 0) { return table[i].val; }