I am getting a compile error when attempting to use std.math.big.int.Mutable.toManaged():
/usr/lib/zig/std/math/big/int.zig:102:22: error: use of undeclared identifier 'limbs'
.limbs = limbs,
^
The body and potential fix for std.math.big.int.Mutable.toManaged() is:
pub fn toManaged(self: Mutable, allocator: *Allocator) Managed {
return .{
.allocator = allocator,
.limbs = limbs, /// <--- Compile error is here. This should be self.limbs
.metadata = if (self.positive)
self.len & ~Managed.sign_bit
else
self.len | Managed.sign_bit,
};
}
I am using 0.6.0+32a6759a7, but this doesn't seem to be fixed in the latest pull of the repo
I'd be happy to fix this bug and create test cases for toManaged.
Most helpful comment
I'd be happy to fix this bug and create test cases for
toManaged.