Pulse-Eight/libcec — comment on commit cc52a02091e15454ff6b832fec3a1abd9aae472e
File:  line 0
By opdenkamp:

See the next commit for the actual fix :) we were looking for the cause, which sucks without a Mac around :)

davilla schreef:

>this fix makes no sense.
>
>c/c++ PEMDAS says multiplication before division so the original would result in a truncated conversion.. Nrmally you want rounding but here, the returned value is a time in ms, that is typically used in timing, so by truncating, you are guaranteed that you get at most T time and never expire before that time.
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/Pulse-Eight/libcec/commit/cc52a02091e15454ff6b832fec3a1abd9aae472e#commitcomment-1039435