Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't call a method if we don't have to
  • Loading branch information
lizmat committed Nov 14, 2015
1 parent 032e02e commit cecaae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Buf.pm
Expand Up @@ -99,7 +99,7 @@ my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is

method subbuf(Blob:D: $from, $length?) {

my int $elems = self.elems;
my int $elems = nqp::elems(self);
X::OutOfRange.new(
what => "Len element to subbuf",
got => $length,
Expand Down

0 comments on commit cecaae2

Please sign in to comment.