Fix not rendering uint64_t values greater than the int64_t max value (#278)

* Fix not properly rendering uint64_t values greater than the int64_t max value

* Move render check to variables subcase
This commit is contained in:
Anthony
2023-11-07 03:42:27 -08:00
committed by GitHub
parent 67d6fea2b7
commit 0066e6049e
3 changed files with 6 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ class Renderer : public NodeVisitor {
void print_data(const std::shared_ptr<json> value) {
if (value->is_string()) {
*output_stream << value->get_ref<const json::string_t&>();
} else if (value->is_number_unsigned()) {
*output_stream << value->get<const json::number_unsigned_t>();
} else if (value->is_number_integer()) {
*output_stream << value->get<const json::number_integer_t>();
} else if (value->is_null()) {