You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of my pre lua53 cleanup , I am adding -Wall to the lua and drivers directories. In the case of the latter this has thrown up a bug in rotary.c. The macro at L40
You are entirely correct -- there should be parens around the x. However, it doesn't actually make much difference. In the driver, this is used to determine whether it is worth waking up the task to handle a message. The module layer gets it correct (I think). Thus there is no functional impact, but there is a performance impact.
As part of my pre lua53 cleanup , I am adding
-Wall
to the lua and drivers directories. In the case of the latter this has thrown up a bug inrotary.c
. The macro at L40has the parentheses around
x
in the expansion missing which means that the use in L175 generateswhich is not the same as the intended
because the & operator has a higher precedence than ^. Ditto L176.
I've added the extra guard parenthesis for my cleanup so my next PR will fix this, but perhaps @pjsg could confirm that this is correct.
The text was updated successfully, but these errors were encountered: