Skip to content
Permalink
Browse files

[js] Implement parameterization of Blobs with 64 bit integers

  • Loading branch information...
pmurias committed Mar 27, 2019
1 parent 4f8a16e commit 6e650cd3a88e5fe54faf67485b976b8211434b53
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Buf.pm6
@@ -16,7 +16,7 @@ enum Endian (

my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is array_type(T) {
die "Can only parameterize with native int types, not '{T.^name}'."
unless nqp::objprimspec(T) == 1;
unless nqp::objprimspec(T) == 1 || nqp::objprimspec(T) == 4 || nqp::objprimspec(T) == 5;

# other then *8 not supported yet
my int $bpe = try {

0 comments on commit 6e650cd

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