Fix constant shift right
This commit is contained in:
parent
893eb287c3
commit
671189f299
@ -3453,6 +3453,7 @@ const Converter = struct {
|
|||||||
.@"<<",
|
.@"<<",
|
||||||
.@">>",
|
.@">>",
|
||||||
};
|
};
|
||||||
|
|
||||||
for (shifting_operators) |shifting_operator| {
|
for (shifting_operators) |shifting_operator| {
|
||||||
r[@intFromEnum(shifting_operator)] = .{
|
r[@intFromEnum(shifting_operator)] = .{
|
||||||
.before = null,
|
.before = null,
|
||||||
@ -3594,7 +3595,7 @@ const Converter = struct {
|
|||||||
'>' => blk: {
|
'>' => blk: {
|
||||||
const next_ch = converter.content[start_index + 1];
|
const next_ch = converter.content[start_index + 1];
|
||||||
const token_id: Token.Id = switch (next_ch) {
|
const token_id: Token.Id = switch (next_ch) {
|
||||||
'<' => switch (converter.content[start_index + 2]) {
|
'>' => switch (converter.content[start_index + 2]) {
|
||||||
'=' => .@">>=",
|
'=' => .@">>=",
|
||||||
else => .@">>",
|
else => .@">>",
|
||||||
},
|
},
|
||||||
|
@ -182,7 +182,7 @@ pub fn entry_point(arguments: []const [*:0]const u8, environment: [*:null]const
|
|||||||
"constant_sub",
|
"constant_sub",
|
||||||
"constant_xor",
|
"constant_xor",
|
||||||
"constant_shift_left",
|
"constant_shift_left",
|
||||||
//"constant_shift_right",
|
"constant_shift_right",
|
||||||
"minimal_stack",
|
"minimal_stack",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user