-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix compilation of SerializeToBinaryJson on macos #10783
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -571,25 +571,25 @@ template <typename TOnDemandValue> | |
} | ||
case simdjson::ondemand::json_type::number: { | ||
switch (value.get_number_type()) { | ||
case simdjson::fallback::number_type::floating_point_number: { | ||
case simdjson::builtin::number_type::floating_point_number: { | ||
double v; | ||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnDouble(v); | ||
break; | ||
} | ||
case simdjson::fallback::number_type::signed_integer: { | ||
i64 v; | ||
case simdjson::builtin::number_type::signed_integer: { | ||
int64_t v; | ||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnInteger(v); | ||
break; | ||
} | ||
case simdjson::fallback::number_type::unsigned_integer: { | ||
ui64 v; | ||
case simdjson::builtin::number_type::unsigned_integer: { | ||
uint64_t v; | ||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnUInteger(v); | ||
break; | ||
} | ||
case simdjson::fallback::number_type::big_integer: | ||
case simdjson::builtin::number_type::big_integer: | ||
double v; | ||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnDouble(v); | ||
|
@@ -662,13 +662,13 @@ template <typename TOnDemandValue> | |
break; | ||
} | ||
case simdjson::dom::element_type::INT64: { | ||
i64 v; | ||
int64_t v; | ||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnInteger(v); | ||
break; | ||
} | ||
case simdjson::dom::element_type::UINT64: { | ||
ui64 v; | ||
uint64_t v; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
RETURN_IF_NOT_SUCCESS(value.get(v)); | ||
callbacks.OnUInteger(v); | ||
break; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ SRCS( | |
|
||
GENERATE_ENUM_SERIALIZATION(format.h) | ||
|
||
CFLAGS( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Игнорирование warning'а, чтобы сборка хедеров simdjson не падала на windows There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Правильно ли понял, что здесь это были варнинги внешней библиотеки simdjson? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Да, вот они в логах сборки: https://nda.ya.ru/t/HW0alCdi79HxbP |
||
-Wno-assume | ||
) | ||
|
||
END() | ||
|
||
RECURSE_FOR_TESTS( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallback -- конкретная имплементация парсера
builtin -- имплементация парсера, выбранная при компиляции