From 330956a47dfda994da5a237fa18ad52d2b829cf7 Mon Sep 17 00:00:00 2001 From: "Jonatan \"jaw\" Wallmander" Date: Thu, 6 Oct 2016 09:53:49 +0200 Subject: [PATCH] better handling of fail template in returning char --- json11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json11.cpp b/json11.cpp index 9c1bb62..0abca07 100644 --- a/json11.cpp +++ b/json11.cpp @@ -435,7 +435,7 @@ struct JsonParser final { char get_next_token() { consume_garbage(); if (i == str.size()) - return (char)fail("unexpected end of input", 0); + return fail("unexpected end of input", (char)0); return str[i++]; }