From 367530b6495a455ad53827bce7f331419ed2ab83 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 8 May 2021 13:30:19 +0100 Subject: Update tests to coverage encoding strings Fixes char (byte) type lookup. --- lib/jsonParse-persistence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/jsonParse-persistence.cpp') diff --git a/lib/jsonParse-persistence.cpp b/lib/jsonParse-persistence.cpp index 6ecfff8..5062796 100644 --- a/lib/jsonParse-persistence.cpp +++ b/lib/jsonParse-persistence.cpp @@ -170,7 +170,7 @@ namespace Persistence { { strm << '"'; std::for_each(value.begin(), value.end(), [this](char ch) { - outFuncs[ch](strm, ch); + outFuncs[(unsigned char)ch](strm, ch); }); strm << '"'; } -- cgit v1.2.3