Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ord should fail if passed a string of zero length, not die.
  • Loading branch information
jnthn committed Aug 19, 2009
1 parent 0bc70da commit 33e3839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/setting/Any-str.pm
Expand Up @@ -32,6 +32,7 @@ class Any is also {
}
our Int multi method ord() is export {
fail('Can not take ord of empty string') if self.chars == 0;
Q:PIR {
$S0 = self
$I0 = ord $S0
Expand Down

0 comments on commit 33e3839

Please sign in to comment.