[PATCH 2/3] kernel32: Fix tick count calculation on Mac.

Dmitry Timoshkov dmitry at baikal.ru
Tue Nov 26 22:40:33 CST 2019


Chip Davis <cdavis at codeweavers.com> wrote:

> +#ifdef HAVE_MACH_CONTINUOUS_TIME
> +    if (&mach_continuous_time != NULL)
> +        return mach_continuous_time() * timebase.numer / timebase.denom / 100;
> +#endif

While the compiler will fix it for you it would still be better to use
'if (mach_continuous_time != NULL)' IMO, so that even if the type of
the 'mach_continuous_time' is a real function pointer it still works.
Same applies to the next patch. That's a pure cosmetics though.

-- 
Dmitry.



More information about the wine-devel mailing list