mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-21 13:42:32 +02:00
14 lines
852 B
Diff
14 lines
852 B
Diff
Reported: https://github.com/MoarVM/MoarVM/pull/1799#discussion_r1623186473
|
|
|
|
--- a/src/core/coerce.c
|
|
+++ b/src/core/coerce.c
|
|
@@ -118,7 +118,7 @@
|
|
}
|
|
|
|
/* End code */
|
|
-static const int mag[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20 };
|
|
+static const int mag[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20, 20 };
|
|
MVMString * MVM_coerce_i_s(MVMThreadContext *tc, MVMint64 i) {
|
|
/* See if we can hit the cache. */
|
|
const int cache = 0 <= i && i < MVM_INT_TO_STR_CACHE_SIZE;
|