Skip to content

Commit d1bab0f

Browse files
committed
fix warnings
1 parent dbfa2e3 commit d1bab0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hjson_decode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static Value _readTfnns(Parser *p) {
527527
size_t valEnd = 0;
528528
auto ret = _readTfnns2(p, valEnd);
529529
// Make sure that we include whitespace after the value in the after-comment.
530-
p->indexNext = valEnd;
530+
p->indexNext = static_cast<int>(valEnd);
531531
_next(p);
532532
return ret;
533533
}
@@ -786,7 +786,7 @@ static Value _rootValue(Parser *p) {
786786
if (_hasTrailing(p, &ciExtra)) {
787787
throw syntax_error(_errAt(p, "Syntax error, found trailing characters"));
788788
}
789-
} catch (const syntax_error& e2) {
789+
} catch (const syntax_error&) {
790790
throw e1;
791791
}
792792
} else {

0 commit comments

Comments
 (0)