From fff45b77adc7a08b1ee2d3c277e74f2ec7027ea2 Mon Sep 17 00:00:00 2001 From: Samrat Man Singh Date: Tue, 14 Apr 2020 13:59:43 +0530 Subject: [PATCH] Reword comment in mach_timebase_info Co-Authored-By: Ralf Jung --- src/shims/time.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shims/time.rs b/src/shims/time.rs index c22ac9ca1a5..a87db987820 100644 --- a/src/shims/time.rs +++ b/src/shims/time.rs @@ -169,9 +169,8 @@ fn mach_timebase_info(&mut self, info_op: OpTy<'tcx, Tag>) -> InterpResult<'tcx, let info = this.deref_operand(info_op)?; - // Since we return nanoseconds instead of ticks from - // `mach_absolute_time`, we don't need to scale the absolute - // time. + // Since our emulated ticks in `mach_absolute_time` *are* nanoseconds, + // no scaling needs to happen. let (numer, denom) = (1,1); let imms = [ immty_from_int_checked(numer, this.machine.layouts.u32)?,