From: notaz Date: Fri, 24 Apr 2015 22:55:15 +0000 (+0300) Subject: fix tests X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6135d8e6925883dd9d4bd6f836bf469bf2ee2b3e;p=ia32rtools.git fix tests reg autoclear was dropped as it could allow some serious problems to be missed --- diff --git a/tests/reg_call3.asm b/tests/reg_call3.asm index 1438637..f5d7d06 100644 --- a/tests/reg_call3.asm +++ b/tests/reg_call3.asm @@ -4,6 +4,7 @@ _text segment para public 'CODE' use32 +; sctattr: clear_regmask=0c sub_test proc near xor ebx, ebx push 1 diff --git a/tools/translate.c b/tools/translate.c index 726da70..0db05e8 100644 --- a/tools/translate.c +++ b/tools/translate.c @@ -7973,7 +7973,7 @@ int main(int argc, char *argv[]) &g_stack_clear_len, &j); else if (i == 1) // clear_regmask= - ret = sscanf(p, "=%d%n", &g_regmask_init, &j) + 1; + ret = sscanf(p, "=%x%n", &g_regmask_init, &j) + 1; if (ret < 2) { anote("unparsed attr value: %s\n", p); break;