summaryrefslogtreecommitdiff
path: root/lib9
diff options
context:
space:
mode:
Diffstat (limited to 'lib9')
-rw-r--r--lib9/sprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9/sprint.c b/lib9/sprint.c
index 86c79a32..d8b8b8e1 100644
--- a/lib9/sprint.c
+++ b/lib9/sprint.c
@@ -25,7 +25,7 @@ sprint(char *buf, char *fmt, ...)
* the stack might be near the top of memory, so
* we must be sure not to overflow a 32-bit pointer.
*/
- if(buf+len < buf)
+ if((uintptr)buf+len < (uintptr)buf)
len = -(uint)buf-1;
va_start(args, fmt);