more strictdef fixes for stdlibs (#24535)

(cherry picked from commit d31cce557b)
This commit is contained in:
ringabout
2024-12-14 02:06:43 +08:00
committed by narimiran
parent 0cce145dac
commit cd06f0769f
21 changed files with 140 additions and 97 deletions

View File

@@ -111,3 +111,5 @@ func find*(s, sub: cstring, start: Natural = 0, last = 0): int =
result = cast[int](found) -% cast[int](s)
else:
result = -1
else:
result = 0