mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 15:27:42 +00:00
LibC: Use the templated type consistently in strtol_impl<T>
This commit is contained in:
parent
b65572b3fe
commit
545e2ba065
1 changed files with 2 additions and 2 deletions
|
@ -81,10 +81,10 @@ static inline T strtol_impl(const char* nptr, char** endptr, int base)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
long cutoff_point = is_negative ? (min_value / base) : (max_value / base);
|
T cutoff_point = is_negative ? (min_value / base) : (max_value / base);
|
||||||
int max_valid_digit_at_cutoff_point = is_negative ? (min_value % base) : (max_value % base);
|
int max_valid_digit_at_cutoff_point = is_negative ? (min_value % base) : (max_value % base);
|
||||||
|
|
||||||
long num = 0;
|
T num = 0;
|
||||||
|
|
||||||
bool has_overflowed = false;
|
bool has_overflowed = false;
|
||||||
unsigned digits_consumed = 0;
|
unsigned digits_consumed = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue