Fix Pas2C implementation of Val failing to parse hexadecimal
authorWuzzy <Wuzzy2@mail.ru>
Fri, 09 Nov 2018 23:05:28 +0100
changeset 14210 b15014125f67
parent 14209 3b83ec44e10b
child 14211 6f76fe84fdee
Fix Pas2C implementation of Val failing to parse hexadecimal
project_files/hwc/rtl/system.c
--- a/project_files/hwc/rtl/system.c	Fri Nov 09 23:03:45 2018 +0300
+++ b/project_files/hwc/rtl/system.c	Fri Nov 09 23:05:28 2018 +0100
@@ -358,7 +358,7 @@
     char *end;
     for(i = 0; i < len; i++)
     {
-        if(src[i] == '$'){
+        if((src[i] == 'x') || (src[i] == 'X')){
             // hex
             return strtol(src + i + 1, &end, 16);
         }