We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17793b commit 990ae04Copy full SHA for 990ae04
src/psram_unique_ptr.hpp
@@ -1462,7 +1462,7 @@ void unicodeToUTF8(const char* src) {
1462
const char* str = get();
1463
char* end = nullptr;
1464
uint64_t result = std::strtoull(str, &end, base);
1465
- if (end == str || *end != '\0') {
+ if (end == str) {
1466
log_e("to_uint64: Invalid numeric value in '%s' for base %d", str, base);
1467
return 0;
1468
}
@@ -1487,7 +1487,7 @@ void unicodeToUTF8(const char* src) {
1487
1488
1489
unsigned long result = std::strtoul(str, &end, base);
1490
1491
log_e("to_uint32: Invalid numeric value in '%s' for base %d", str, base);
1492
1493
0 commit comments