pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2017-04-02
2017-04-02 20:36:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b7646b0dd4a7a23f20cdec65e4a1eef0c680cdc4 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
search: Fixed end of range condition.
Fixes testsuite failure.
951:
*! *! @param end *! If the optional argument @[end] is present, the search will terminate
-
*! at this position if not found earlier.
+
*! at this position
(exclusive)
if not found earlier.
*! *! @returns *! Returns the position of @[needle] in @[haystack] if found.
1091:
start = string_search(haystack, Pike_sp[1-args].u.string, start);
+
end -= Pike_sp[1-args].u.string->len-1;
} } else { SIMPLE_ARG_TYPE_ERROR("search", 2, "string | int");