compilation fix.

This commit is contained in:
HedgehogInTheCPP 2026-09-23 03:22:44 +03:00
parent 4aae299916
commit d2934c2f46
2 changed files with 5 additions and 7 deletions

View File

@ -34,8 +34,7 @@ void pretty_print(size_t volume, size_t bytes, std::string name,
printf("\n");
}
fastfloat_really_inline const char *seek_ip_end(const char *p,
const char *pend) {
fastfloat_inline const char *seek_ip_end(const char *p, const char *pend) {
const char *current = p;
size_t count = 0;
for (; current != pend; ++current) {
@ -60,7 +59,7 @@ fastfloat_really_inline const char *seek_ip_end(const char *p,
enum class parse_method { standard, fast_float };
template <parse_method use_standard>
fastfloat_really_inline std::pair<bool, uint32_t>
fastfloat_inline std::pair<bool, uint32_t>
simple_parse_ip_line(const char *p, const char *pend) {
const char *current = p;
uint32_t ip = 0;
@ -184,4 +183,4 @@ int main() {
}));
return EXIT_SUCCESS;
}
}

View File

@ -37,8 +37,7 @@ void uint32_to_ipv4_string(uint32_t ip, char *buffer) {
*ptr = '\0';
}
fastfloat_really_inline uint32_t ipv4_string_to_uint32(const char *str,
const char *end) {
uint32_t ipv4_string_to_uint32(const char *str, const char *end) {
uint32_t ip = 0;
const char *current = str;
@ -90,4 +89,4 @@ int main() {
std::cerr << "IPv4 conversion test failed!" << std::endl;
return EXIT_FAILURE;
}
}
}