diff options
Diffstat (limited to 'src/String/Inline')
| -rw-r--r-- | src/String/Inline/Int.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/String/Inline/Int.h b/src/String/Inline/Int.h index 57eaee0..d77a8cd 100644 --- a/src/String/Inline/Int.h +++ b/src/String/Inline/Int.h @@ -3,15 +3,15 @@ signed char sym; /* Check for valid base and zero out read size */ result = 0; -if (size) - *size = 0; +if (actual) + *actual = 0; if (base != 0 && (base < 2 || base > 36)) return 0; /* Handle space, sign and base */ -skipSpace(&string, size); -handleSign(&string, size, &sign); -guessBase(&string, size, &base); +skipSpace(&string, actual); +handleSign(&string, actual, &sign); +guessBase(&string, actual, &base); /* Read digits */ while(*string) @@ -21,14 +21,14 @@ while(*string) if (sym >= base || sym == -1) break; - if (size) - (*size)++; + if (actual) + (*actual)++; result = result * base + sym; flag = 1; } /* Zero out size on error */ -if (!result && !flag && size) - *size = 0; +if (!result && !flag && actual) + *actual = 0; return result * sign; |
