mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibC: Use the templated type consistently in strtol_impl<T>
This commit is contained in:
parent
b65572b3fe
commit
545e2ba065
Notes:
sideshowbarker
2024-07-19 09:59:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/545e2ba065b
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);
|
||||
|
||||
long num = 0;
|
||||
T num = 0;
|
||||
|
||||
bool has_overflowed = false;
|
||||
unsigned digits_consumed = 0;
|
||||
|
|
Loading…
Reference in a new issue