git: 9front

Download patch

ref: e20ea5281dba06189df6bf4f2700f2651199596d
parent: f77a48a14dca7b0a2e212f06b38aad266988ec76
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Jun 9 14:00:13 EDT 2023

strtoull: fix return value on overflow

--- a/sys/src/libc/port/strtoull.c
+++ b/sys/src/libc/port/strtoull.c
@@ -1,7 +1,7 @@
 #include <u.h>
 #include <libc.h>
 
-#define UVLONG_MAX	(1LL<<63)
+#define UVLONG_MAX	(~0ULL)
 
 uvlong
 strtoull(char *nptr, char **endptr, int base)
--