From 6d8e00ade80b72ffbb849c363cb4bd0f37d0804d Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 8 May 2016 17:17:17 +0200 Subject: [PATCH] another try to remove a warning --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 459f7f3d..bc6fd709 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -5967,7 +5967,7 @@ class basic_json { return (v < 10) ? ('0' + static_cast(v)) - : ('a' + static_cast((v - 10) & 0xff)); + : ('a' + static_cast((v - 10) & 0x1f)); }; // print character c as \uxxxx diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 685024a5..793cc738 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -5967,7 +5967,7 @@ class basic_json { return (v < 10) ? ('0' + static_cast(v)) - : ('a' + static_cast((v - 10) & 0xff)); + : ('a' + static_cast((v - 10) & 0x1f)); }; // print character c as \uxxxx