We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbfa2e3 commit d1bab0fCopy full SHA for d1bab0f
1 file changed
src/hjson_decode.cpp
@@ -527,7 +527,7 @@ static Value _readTfnns(Parser *p) {
527
size_t valEnd = 0;
528
auto ret = _readTfnns2(p, valEnd);
529
// Make sure that we include whitespace after the value in the after-comment.
530
- p->indexNext = valEnd;
+ p->indexNext = static_cast<int>(valEnd);
531
_next(p);
532
return ret;
533
}
@@ -786,7 +786,7 @@ static Value _rootValue(Parser *p) {
786
if (_hasTrailing(p, &ciExtra)) {
787
throw syntax_error(_errAt(p, "Syntax error, found trailing characters"));
788
789
- } catch (const syntax_error& e2) {
+ } catch (const syntax_error&) {
790
throw e1;
791
792
} else {
0 commit comments