diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index b9db2614b9..43457ba44a 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1297,7 +1297,7 @@ static char *_php3_memstr(char *s, char *c, size_t n, size_t m) { char *p; - for(p = s; (p - s) < n; p++) + for(p = s; ((size_t) (p - s)) < n; p++) if(memcmp(p, c, m) == 0) return p; return NULL; |