summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-08 13:30:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commit367530b6495a455ad53827bce7f331419ed2ab83 (patch)
tree89485bf948505efeff9f7c99253724b617ad3fda /lib
parentInitial commit where writing objects back out to JSON (diff)
downloadilt-367530b6495a455ad53827bce7f331419ed2ab83.tar.bz2
ilt-367530b6495a455ad53827bce7f331419ed2ab83.tar.xz
ilt-367530b6495a455ad53827bce7f331419ed2ab83.zip
Update tests to coverage encoding strings
Fixes char (byte) type lookup.
Diffstat (limited to 'lib')
-rw-r--r--lib/jsonParse-persistence.cpp2
1 files changed, 1 insertions, 1 deletions
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 << '"';
}