From 8b41796345a949db2dc05a4c6a2e43383f00694c Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Tue, 5 Nov 2024 07:33:40 -0500 Subject: [PATCH] Change return to avoid warnings. --- system/jlib/jstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/jlib/jstring.cpp b/system/jlib/jstring.cpp index 340e11509ce..967d9b50658 100644 --- a/system/jlib/jstring.cpp +++ b/system/jlib/jstring.cpp @@ -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