mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
hopefully get the logic right this time
This commit is contained in:
parent
4731cbd391
commit
3ef4a40f45
2 changed files with 14 additions and 9 deletions
|
@ -69,7 +69,7 @@ const Alignment = extern struct {
|
|||
const VALUE_BEFORE_KEY_FLAG: u8 = 0b1000_0000;
|
||||
|
||||
fn toU32(self: Alignment) u32 {
|
||||
if (self.bits & Alignment.VALUE_BEFORE_KEY_FLAG == 1) {
|
||||
if (self.bits >= VALUE_BEFORE_KEY_FLAG) {
|
||||
return self.bits ^ Alignment.VALUE_BEFORE_KEY_FLAG;
|
||||
} else {
|
||||
return self.bits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue