Overview
| Artifact ID: | f29014e3b3ee74e965cc355edbe8bb9652a9c2c5 |
|---|---|
| Ticket: | 2010028fffffffffffffffffffffffffffffffff
TCL 8.5.2 test failures in x86_64 Interix |
| User & Date: | dgp on 2008-07-08 03:37:50 |
Changes
- icomment:
Logged In: YES user_id=80530 Originator: NO Please compile and run this test program in the same environment: #include <stdio.h> int main (int argc, char **argv) { int x = 0xdeadbeef; char buf[100]; sprintf(buf, "%ld", (long)x); fprintf(stdout, "Result is %s\n", buf); } The correct output ought to be: Result is -559038737 If you see this output instead: Result is 3735928559 ...then something is, um, surprising about your C library's conception of casting from int to long, or its sprintf(), or both. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"