mirror of
https://github.com/ksherlock/merlin-utils.git
synced 2024-12-26 21:30:47 +00:00
typo
This commit is contained in:
parent
1ac35ec473
commit
bef129bd8c
5
link.cpp
5
link.cpp
@ -14,8 +14,9 @@
|
||||
#include <charconv>
|
||||
#endif
|
||||
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
@ -415,7 +416,7 @@ bool parse_number(const char *begin, const char *end, uint32_t &value, int base
|
||||
auto xerrno = errno;
|
||||
errno = 0;
|
||||
char *ptr = nullptr;
|
||||
value = stroul(begin, &ptr, base);
|
||||
value = std::strtoul(begin, &ptr, base);
|
||||
std::swap(errno, xerrno);
|
||||
if (xerrno || ptr != end) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user