|
|
| version 1.263, 2020/10/10 06:08:37 | version 1.265, 2020/12/02 15:25:41 |
|---|---|
| Line 92 unsigned int pa_atoui(const char *str, i | Line 92 unsigned int pa_atoui(const char *str, i |
| return pa_ato_any<unsigned int>(str, base, problem_source, UINT_MAX); | return pa_ato_any<unsigned int>(str, base, problem_source, UINT_MAX); |
| } | } |
| unsigned long long pa_atoul(const char *str, int base, const String* problem_source){ | uint64_t pa_atoul(const char *str, int base, const String* problem_source){ |
| if(!str) | if(!str) |
| return 0; | return 0; |
| return pa_ato_any<unsigned long long int>(str, base, problem_source, ULLONG_MAX); | return pa_ato_any<uint64_t>(str, base, problem_source, ULLONG_MAX); |
| } | } |
| int pa_atoi(const char* str, const String* problem_source) { | int pa_atoi(const char* str, int base, const String* problem_source) { |
| if(!str) | if(!str) |
| return 0; | return 0; |
| Line 117 int pa_atoi(const char* str, const Strin | Line 117 int pa_atoi(const char* str, const Strin |
| str++; | str++; |
| } | } |
| unsigned int result=pa_atoui(str, 0, problem_source); | unsigned int result=pa_atoui(str, base, problem_source); |
| if(negative && result <= ((unsigned int)(-(1+INT_MIN)))+1) | if(negative && result <= ((unsigned int)(-(1+INT_MIN)))+1) |
| return -(int)result; | return -(int)result; |