Skip to content

Commit

Permalink
Force a static cast for size compares
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Jun 8, 2023
1 parent a9aa2d5 commit 1523a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/support/StringSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class StringSplitter
if (*end != '\0')
{
// intermediate element
out = CharSpan(mNext, end - mNext);
out = CharSpan(mNext, static_cast<size_t>(end - mNext));
mNext = end + 1;
}
else
Expand Down

0 comments on commit 1523a44

Please sign in to comment.