ref: 913ce62cfc78043973190b37f1bc2a7c37c15927
parent: 261ec9fe0e0b2dbde909da79a93e90220a9ea62c
author: aiju <devnull@localhost>
date: Sat Aug 27 21:08:26 EDT 2016
strtomp: update the returned char* even if there were no characters parsed
--- a/sys/src/libmp/port/strtomp.c
+++ b/sys/src/libmp/port/strtomp.c
@@ -240,12 +240,12 @@
return nil;
}
+ if(pp != nil)
+ *pp = e;
+
// if no characters parsed, there wasn't a number to convert
if(e == a)
return nil;
-
- if(pp != nil)
- *pp = e;
b->sign = sign;
return mpnorm(b);
--
⑨