8000 Update api/String.cpp · arduino/ArduinoCore-API@12fb6ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 12fb6ba

Browse files
PiotrekB416per1234
andauthored
Update api/String.cpp
Co-authored-by: per1234 <accounts@perglass.com>
1 parent f782ba4 commit 12fb6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/String.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ void String::replace(const String& find, const String& replace)
652652
}
653653
} else if (diff < 0) {
654654
unsigned int size = len; // compute size needed for result
655-
diff = 0 - diff;
655+
diff = 0 - diff;
656656
while ((foundAt = strstr(readFrom, find.buffer)) != NULL) {
657657
readFrom = foundAt + find.len;
658658
size -= diff;

0 commit comments

Comments
 (0)
0