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