mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
Codechange: Use std::strto* variants everywhere (#10720)
This commit is contained in:
@@ -874,7 +874,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
||||
memset(sub_args_need_free, 0, sizeof(sub_args_need_free));
|
||||
|
||||
char *p;
|
||||
uint32 stringid = strtoul(str, &p, 16);
|
||||
uint32 stringid = std::strtoul(str, &p, 16);
|
||||
if (*p != ':' && *p != '\0') {
|
||||
while (*p != '\0') p++;
|
||||
str = p;
|
||||
@@ -926,7 +926,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
|
||||
bool lookup = (l == SCC_ENCODED);
|
||||
if (lookup) s += len;
|
||||
|
||||
param = strtoull(s, &p, 16);
|
||||
param = std::strtoull(s, &p, 16);
|
||||
|
||||
if (lookup) {
|
||||
if (param >= TAB_SIZE_GAMESCRIPT) {
|
||||
|
Reference in New Issue
Block a user