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
@jbeich thanks for pointing this out. I think this is caused by #202 (comment), followed by repeated submitter complaints about review and me no longer caring to respond.
The submitter forgot to think about operator predence when outsmarting | with a +, which causes the expression to effectively be:
let id = old_id &(id_mask + ty.minor_base());
Instead of the end-result that we want:
let id = (old_id & id_mask) + ty.minor_base();
This wouldn't have been a problem if | was used, which already has lower precedence than & (while + has _higher precedence than &).
Could you test if this single line works for you?
constID_MASK:u32 = 0b11_1111;let id = old_id &ID_MASK | ty.minor_base();
(I still would have preferred a shift over hardcoding the numbers, but 🤷)
Related to #202. Sorry, I don't know Rust to debug more.
Reverting to Smithay version appears to help:
The text was updated successfully, but these errors were encountered: