[Snek] [PATCH] Fix onfor() ignoring fractional parts of a second
Keith Packard
keithp at keithp.com
Mon Oct 12 10:30:43 PDT 2020
Misha Gusarov <dottedmag at dottedmag.net> writes:
> - if (sysfs_write_int(fd, "time_sp", ((int) fduration * DURATION_SCALE)) == -1) {
> + if (sysfs_write_int(fd, "time_sp", (int) (fduration * DURATION_SCALE)) == -1) {
Thanks. I've applied this and pushed to main.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://keithp.com/pipermail/snek/attachments/20201012/1f0daa87/attachment.sig>
More information about the Snek
mailing list