Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make .ord return Int, as pointed out by GlitchMr++
  • Loading branch information
lizmat committed Sep 7, 2013
1 parent a13cec9 commit 799989a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Cool.pm
Expand Up @@ -117,11 +117,11 @@ my class Cool { # declared in BOOTSTRAP
self.Str.chop
}

method ord() {
method ord(--> Int) {
my $s := self.Str;
$s.chars
?? nqp::p6box_i(nqp::ord(nqp::unbox_s($s)))
!! Any;
!! Int;
}
method chr() {
self.Int.chr;
Expand Down

0 comments on commit 799989a

Please sign in to comment.