mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-10-28 18:07:16 +08:00
compilation fix.
This commit is contained in:
parent
4aae299916
commit
d2934c2f46
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user