File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ bitfield Bit { b: 1; };
11
11
namespace SpecialWords {
12
12
bitfield StructPointer {
13
13
A: 2 [[comment("Always 0")]];
14
- Offset: 30 [[comment("Offset in words from the end of the pointer to the start of the struct's data section. Signed")]];
14
+ signed Offset: 30 [[comment("Offset in words from the end of the pointer to the start of the struct's data section. Signed")]];
15
15
DataSectionSize: 16 [[comment("Size of the struct's data section in words.")]];
16
16
PointerSectionSize: 16 [[comment("Size of the struct's data section in words.")]];
17
17
} [[color("FF964F"), format("SpecialWords::format_struct_pointer")]];
18
18
19
19
bitfield ListPointer {
20
20
A: 2; // Always 1
21
- Offset: 30;
21
+ signed Offset: 30;
22
22
ElementSize: 3;
23
23
ListSize: 29;
24
24
} [[color("A7C7E7"), format("SpecialWords::format_list_pointer")]];
@@ -130,8 +130,8 @@ struct StructContent<auto DataSize, auto PointerSize> {
130
130
131
131
struct StructPointer {
132
132
SpecialWords::StructPointer ptrWord;
133
- bool isNull = (ptrWord.Offset + ptrWord.DataSectionSize + ptrWord.PointerSectionSize) == 0;
134
- bool isEmpty = (ptrWord.Offset == -1) && ((ptrWord.DataSectionSize + ptrWord.PointerSectionSize) == 0);
133
+ bool isNull = (ptrWord.Offset | ptrWord.DataSectionSize | ptrWord.PointerSectionSize) == 0;
134
+ bool isEmpty = (ptrWord.Offset == -1) && ((ptrWord.DataSectionSize | ptrWord.PointerSectionSize) == 0);
135
135
136
136
if (!isNull && !isEmpty)
137
137
StructContent<ptrWord.DataSectionSize, ptrWord.PointerSectionSize> content @ calc_offset(ptrWord) [[inline]];
You can’t perform that action at this time.
0 commit comments