Skip to content
Permalink
Browse files

Kernel.Endian to be called .endian

  • Loading branch information...
lizmat committed Dec 12, 2018
1 parent 543219c commit af43b1592b02c29878ef0738bb3a99d11b18fc90
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/Buf.pm6
  2. +1 −1 src/core/Kernel.pm6
@@ -192,7 +192,7 @@ my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is
my \first := self.read-uint64($offset, $endian);
my \second := self.read-uint64($offset + 8, $endian);
$endian == BigEndian
|| ($endian == NativeEndian && Kernel.Endian == BigEndian)
|| ($endian == NativeEndian && Kernel.endian == BigEndian)
?? first +< 64 +| second
!! second +< 64 +| first
}
@@ -186,7 +186,7 @@ class Kernel does Systemic {
}

my $endian := nqp::null;
method Endian(--> Endian:D) {
method endian(--> Endian:D) {
nqp::ifnull(
$endian,
nqp::bind($endian,nqp::if(

0 comments on commit af43b15

Please sign in to comment.
You can’t perform that action at this time.