1
Fork 0

report the bad integer size instead of just the fact that it is bad

This commit is contained in:
Oliver 'ker' Schneider 2016-11-11 13:08:14 +01:00
parent b2d476eb38
commit 1c40fb0da1

View file

@ -570,7 +570,7 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
2 => Ok(self.layout.i16_align.abi() as usize),
4 => Ok(self.layout.i32_align.abi() as usize),
8 => Ok(self.layout.i64_align.abi() as usize),
_ => bug!("bad integer size"),
_ => bug!("bad integer size: {}", size),
}
}