mirror of
https://github.com/0intro/conterm
synced 2024-11-22 05:41:28 +03:00
sprint: the usual gcc "bug"
This commit is contained in:
parent
4f14409f56
commit
5cc6f05c4d
@ -14,7 +14,7 @@ sprint(char *buf, char *fmt, ...)
|
|||||||
* on PowerPC, the stack is near the top of memory, so
|
* on PowerPC, the stack is near the top of memory, so
|
||||||
* we must be sure not to overflow a 32-bit pointer.
|
* we must be sure not to overflow a 32-bit pointer.
|
||||||
*/
|
*/
|
||||||
if(buf+len < buf)
|
if((uintptr)buf+len < (uintptr)buf)
|
||||||
len = -(uintptr)buf-1;
|
len = -(uintptr)buf-1;
|
||||||
|
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user