History

20100504-1334

forsyth committed 16 years ago

Commit fc021511 parent 6d473861 file · +3 −3Browse files

Unified · Split

lib9/strtoull.c+3−3
@@ -3,9 +3,9 @@ · 2 unmodified lines
33 #define UVLONG_MAX ((uvlong)1<<63)
44
55 uvlong
6−strtoull(char *nptr, char **endptr, int base)
6+strtoull(const char *nptr, char **endptr, int base)
77 {
8− char *p;
8+ const char *p;
99 uvlong n, nn, m;
1010 int c, ovfl, v, neg, ndig;
1111
@@ -87,7 +87,7 @@ Return: · 75 unmodified lines
8787 if(ndig == 0)
8888 p = nptr;
8989 if(endptr)
90− *endptr = p;
90+ *endptr = (char*)p;
9191 if(ovfl)
9292 return UVLONG_MAX;
9393 if(neg)