Skip to content

Commit

Permalink
Merge pull request #4607 from MasterDuke17/use_better_default_for_nat…
Browse files Browse the repository at this point in the history
…ivesize_in_buf_gist
  • Loading branch information
MasterDuke17 committed Oct 31, 2021
2 parents 58f5366 + e99e274 commit 580b3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Buf.pm6
Expand Up @@ -351,7 +351,7 @@ my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is

multi method gist(Blob:D:) {
# (u)int don't have a nativesize, so just assume 64-bit for them
my int $nativesize = nqp::div_i(T.^nativesize // int64.^nativesize, 4) || 1;
my int $nativesize = nqp::div_i(T.^nativesize // $?BITS, 4) || 1;

my int $todo = nqp::elems(self) min nqp::div_i(200,$nativesize);
my int $i = -1;
Expand Down

0 comments on commit 580b3ba

Please sign in to comment.