Skip to content

Commit 103ec55

Browse files
committed
int -> size_t
1 parent fa177a5 commit 103ec55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hjson_decode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static std::string _errAt(Parser *p, const std::string& message) {
9393
if (p->dataSize && p->indexNext <= p->dataSize) {
9494
size_t decoderIndex = std::max(static_cast<size_t>(1), std::min(p->dataSize,
9595
static_cast<size_t>(p->indexNext))) - 1;
96-
int i = decoderIndex, col = 0, line = 1;
96+
size_t i = decoderIndex, col = 0, line = 1;
9797

9898
for (; i > 0 && p->data[i] != '\n'; i--) {
9999
col++;

0 commit comments

Comments
 (0)