From a5521b4b028f7ffd0aeafb221a3cc7ca0457aa51 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Fri, 30 Mar 2018 11:25:44 +0200 Subject: [PATCH] numbers: do not use (unsigned) int for numbers but always double fixes #27 --- src/json-validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 6e31937..ecb88da 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -231,13 +231,13 @@ void validate_numeric(const json &schema, const std::string &name, double value) void validate_integer(const json &instance, const json &schema, const std::string &name) { validate_type(schema, "integer", name); - validate_numeric(schema, name, instance.get()); + validate_numeric(schema, name, instance.get()); } void validate_unsigned(const json &instance, const json &schema, const std::string &name) { validate_type(schema, "integer", name); - validate_numeric(schema, name, instance.get()); + validate_numeric(schema, name, instance.get()); } void validate_float(const json &instance, const json &schema, const std::string &name)