# HG changeset patch # User Wuzzy # Date 1541801128 -3600 # Node ID b15014125f67a9391d65a9252f2ee1b53c44109a # Parent 3b83ec44e10be4c29cc9595f7979ac58f31ddea9 Fix Pas2C implementation of Val failing to parse hexadecimal diff -r 3b83ec44e10b -r b15014125f67 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); }