Reword comment in mach_timebase_info

Co-Authored-By: Ralf Jung <post@ralfj.de>
This commit is contained in:
Samrat Man Singh 2020-04-14 13:59:43 +05:30 committed by GitHub
parent 90729bb039
commit fff45b77ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)?,