From f2ee6b1759af005a060d638676a3e12ab8e42f9d Mon Sep 17 00:00:00 2001 From: Carlos Montiers Date: Thu, 10 Jul 2014 20:41:51 -0400 Subject: Fix mistake. Change jb by jbe. tiny c round (INT_MAX = 0x7FFFFFFF) to a DWORD boundary and it becomes 0x80000000. Jle treats as -214783648, but Jbe treats as 214783648. Thanks to Jason Hood for explain me this. --- lib/alloca86_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/alloca86_64.S') diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S index 51acd42..4a74104 100644 --- a/lib/alloca86_64.S +++ b/lib/alloca86_64.S @@ -17,7 +17,7 @@ alloca: #ifdef TCC_TARGET_PE p1: cmp $4096,%rax - jb p2 + jbe p2 test %rax,-4096(%rsp) sub $4096,%rsp sub $4096,%rax -- cgit v1.3.1