String indexing error
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4573
Reported by Jonas Wallden jonasw@roxen.com
"foobar"[1..Int.NATIVE_MAX] no longer works as it did in 7.4.
Pike v7.8 release 24 running Hilfe v3.5 (Incremental Pike Frontend)
> "foobar"[1..Int.NATIVE_MAX];
(1) Result: ""
> "foobar"[1..Int.NATIVE_MAX - 1];
(2) Result: "oobar"
>
Compare this with 7.4 (with the max int expanded since it's not available as a constant):
running Hilfe v3.5 (Incremental Pike Frontend)
> "foobar"[1..0x7fffffff];
(1) Result: "oobar"