pub fn setSign(self: *Managed, positive: bool) void
Sets the sign of an Managed.
self: *Managed
positive: bool
2882 2883 2884 2885 2886 2887 2888
pub fn setSign(self: *Managed, positive: bool) void { if (positive) { self.metadata &= ~sign_bit; } else { self.metadata |= sign_bit; } }
Sets the sign of an Managed.