Permalink
Browse files

fix RT #70415, substr() returned a parrot String, not a Str

This resulted in split() also returning Strings.
jnthn++ for suggesting the correct fix.
  • Loading branch information...
1 parent 365404e commit f87efac027edf84bff2b8578a9762ac8ab8b44ca @moritz moritz committed Nov 11, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/builtins/any-str.pir
View
@@ -273,7 +273,9 @@ file.
push_eh fail
$S1 = substr $S0, start, len
pop_eh
- .return ($S1)
+ $P0 = new ['Str']
+ $P0 = $S1
+ .return ($P0)
fail:
.get_results($P0)
pop_eh

0 comments on commit f87efac

Please sign in to comment.