Skip to content

Commit 32d0126

Browse files
bjorn3TimDiekmann
andauthored
Update src/fn_call.rs
Co-Authored-By: TimDiekmann <[email protected]>
1 parent fdefac8 commit 32d0126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
9898
let len = this.read_scalar(args[1])?.to_usize(this)?;
9999
let bytes = items.checked_mul(len).ok_or_else(|| InterpError::Overflow(mir::BinOp::Mul))?;
100100

101-
if bytes== 0 {
101+
if bytes == 0 {
102102
this.write_null(dest)?;
103103
} else {
104104
let size = Size::from_bytes(bytes);

0 commit comments

Comments
 (0)