mirror of
https://github.com/pantor/inja.git
synced 2026-04-24 00:39:24 +00:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user