Skip to content

Commit

Permalink
Change return to avoid warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Nov 5, 2024
1 parent 1a16e73 commit 8b41796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/jlib/jstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ bool replaceString(StringBuffer & result, size_t lenSource, const char *source,
if (lastCopied || !avoidCopyIfUnmatched)
result.append(lenSource - lastCopied, source + lastCopied); // Append the remaining characters

return lastCopied;
return lastCopied != 0;
}
else if (!avoidCopyIfUnmatched)
result.append(lenSource, source); // Search string does not fit in source or is empty
Expand Down

0 comments on commit 8b41796

Please sign in to comment.