Made find() return -1 if not found.

This commit is contained in:
Brad Arant committed 2024-09-24 14:19:25 -07:00
1 parent d7ef47cd49
commit 75df8d0282
2 files changed
+6 -2

No files matched your search

+1 -2
View File
@@ -412,8 +412,7 @@ namespace coreutils {
++temp2;
if(cursor > (data + length)) {
cursor = temp;
count = 0;
break;
return -1;
}
}
cursor = temp2;