diff -r ff7fbab7cd56 -r ae8a957c69fd project_files/hwc/rtl/system.c --- a/project_files/hwc/rtl/system.c Thu Apr 04 00:32:57 2013 +0200 +++ b/project_files/hwc/rtl/system.c Thu Apr 04 01:38:30 2013 +0200 @@ -169,23 +169,21 @@ // decimal return atoi(src); } -void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, LongInt *a, - LongInt *c) { - *c = 0; // no error + +void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, LongInt *a) +{ FIX_STRING(s); *a = str_to_int(s.str); } -void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, Byte *a, - LongInt *c) { - *c = 0; // no error +void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, Byte *a) +{ FIX_STRING(s); *a = str_to_int(s.str); } -void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, LongWord *a, - LongInt *c) { - *c = 0; // no error +void __attribute__((overloadable)) fpcrtl_val__vars(string255 s, LongWord *a) +{ FIX_STRING(s); *a = str_to_int(s.str); }