authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-10-25 01:27:05+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-10-25 01:27:05+02:00
loga587dd08f86bf8524b9dc405044b9b48a735db18
treeb182fb381d5d26c16f03de4af4fbe90a9839f906
parentce65ca434584783c30c80b611e02428a26f65512

std: disable big.rational setFloat targeting wasm32

until we fix the underlying issue resulting in `error.TargetTooSmall` error.

1 files changed, 5 insertions(+), 0 deletions(-)

lib/std/math/big/rational.zig+5
......@@ -4,6 +4,8 @@ const math = std.math;
44const mem = std.mem;
55const testing = std.testing;
66const Allocator = mem.Allocator;
7const builtin = @import("builtin");
8const native_arch = builtin.target.cpu.arch;
79
810const Limb = std.math.big.Limb;
911const DoubleLimb = std.math.big.DoubleLimb;
......@@ -537,6 +539,9 @@ test "big.rational set" {
537539}
538540
539541test "big.rational setFloat" {
542 // TODO https://github.com/ziglang/zig/issues/10026
543 if (native_arch == .wasm32) return error.SkipZigTest;
544
540545 var a = try Rational.init(testing.allocator);
541546 defer a.deinit();
542547