Merge: lib: fix semantic on has_substring on extreme cases
authorJean Privat <jean@pryen.org>
Wed, 29 Oct 2014 19:11:38 +0000 (15:11 -0400)
committerJean Privat <jean@pryen.org>
Wed, 29 Oct 2014 19:11:38 +0000 (15:11 -0400)
And avoid illegal access outside the string.

Detected thanks to the interpreted that warns on out-of-bound accesses in nativestrings.

Pull-Request: #854
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
lib/standard/string.nit

Simple merge