size has a zero

This commit is contained in:
Dante-Broggi 2019-08-17 16:09:49 -04:00
parent d65e272a9f
commit d64f06ce31

View File

@ -530,7 +530,7 @@ pub fn erase_tag(self) -> ScalarMaybeUndef
pub fn not_undef(self) -> InterpResult<'static, Scalar<Tag>> {
match self {
ScalarMaybeUndef::Scalar(scalar) => Ok(scalar),
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::from_bytes(0))),
ScalarMaybeUndef::Undef => throw_unsup!(ReadUndefBytes(Size::ZERO)),
}
}