#11647 closed bug (fixed)
Sign of INT64_MIN is wrong
Reported by: | Timothy_Gu | Owned by: | korli |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | stdint gci2014 | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Hi, the follow program exits with code 1 on x86_64 at least, although from the look of code x86 could be affected as well.
#include <stdint.h> int main() { int64_t test = 5; if (test < INT64_MIN) return 1; return 0; }
A patch that fixes this issue is attached.
This is a regression since 1d13a60901 (hrev48499).
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | 0001-stdint.h-use-correct-type-for-INT64_MAX.patch added |
---|
comment:1 by , 10 years ago
patch: | 0 → 1 |
---|
comment:2 by , 10 years ago
Summary: | Definition of INT64_MIN wrong → Sign of INT64_MIN is wrong |
---|
comment:3 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Applied in hrev48532. Thanks!
comment:5 by , 10 years ago
Keywords: | gci2014 added |
---|
Note:
See TracTickets
for help on using tickets.
Patch fixing the issue