Skip to content

Commit 1ca609d

Browse files
committed
use eval_libc_i32 instead of .to_i32()
1 parent 2645080 commit 1ca609d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
393393
// No flags set, the timespec should be interperted as a duration
394394
// to sleep for
395395
TimeoutAnchor::Relative
396-
} else if flags == this.eval_libc("TIMER_ABSTIME").to_i32()? {
396+
} else if flags == this.eval_libc_i32("TIMER_ABSTIME") {
397397
// Only flag TIMER_ABSTIME set, the timespec should be interperted as
398398
// an absolute time.
399399
TimeoutAnchor::Absolute

0 commit comments

Comments
 (0)