Closed SDEEV closed 2 years ago
line 222: ((self.0 >> Self::STANDARD_SHIFT) & Self::STANDARD_MASK) as u16, should be ((self.0 & Self::STANDARD_MASK) >> Self::STANDARD_SHIFT) as u16,
((self.0 >> Self::STANDARD_SHIFT) & Self::STANDARD_MASK) as u16,
((self.0 & Self::STANDARD_MASK) >> Self::STANDARD_SHIFT) as u16,
Thanks for reporting, this is indeed a bug! I guess this shows up with any non-zero ID, we definitely need more test cases to catch these problems
There's a fix in the pull request above
Fixed in #18
line 222:
((self.0 >> Self::STANDARD_SHIFT) & Self::STANDARD_MASK) as u16,
should be((self.0 & Self::STANDARD_MASK) >> Self::STANDARD_SHIFT) as u16,