Skip to content

Commit 6e13085

Browse files
committed
Fix code analysis warning.
1 parent 6236e63 commit 6e13085

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_codec/ssfubjson_ut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bool _SSFUBJsonPrintOptArray(uint8_t* js, size_t size, size_t start, size_t* end
181181

182182
for (i = 0; i < *alen; i++)
183183
{
184-
if (!SSFUBJsonPrintInt(js, size, start, &start, (int64_t) (i + 1), false)) return false;
184+
if (!SSFUBJsonPrintInt(js, size, start, &start, ((int64_t) i) + 1, false)) return false;
185185
*end = start;
186186
}
187187
return true;

0 commit comments

Comments
 (0)