[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] bug #47379: Compare bug
From: |
Sergey Korshunoff |
Subject: |
[Tinycc-devel] bug #47379: Compare bug |
Date: |
Mon, 2 May 2016 07:08:43 +0300 |
bug #47379: Compare bug
Please test/confirm on x86-64 (no bug on x86 Linux)
include <stdio.h>
#include <stdint.h>
int main(int argc, char* argv[]) {
printf("%d\n", -2147483648);
printf("%ld\n", -2147483648LL);
printf("%d\n", (1LL) < (-2147483648LL));
return 0;
}
tcc output:
-2147483648
-2147483648
1
gcc output:
-2147483648
-2147483648
0
- [Tinycc-devel] bug #47379: Compare bug,
Sergey Korshunoff <=