Skip to content

Commit

Permalink
this one too
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 authored Oct 25, 2024
1 parent 1073cc3 commit 8ebeff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMCompiler/Optimizer/PeepholeOptimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ public void Apply(List<IAnnotatedBytecode> input, int index) {

// At runtime, given "A >> B" we pop B then A
// In the peephole optimizer, index is "A", index+1 is "B"
var args = new List<IAnnotatedBytecode>(1) {new AnnotatedBytecodeInteger(((int)pushVal1 >> (int)pushVal2), firstInstruction.Location)};
var args = new List<IAnnotatedBytecode>(1) {new AnnotatedBytecodeFloat(((int)pushVal1 >> (int)pushVal2), firstInstruction.Location)};

IPeepholeOptimization.ReplaceInstructions(input, index, 3,
new AnnotatedBytecodeInstruction(DreamProcOpcode.PushFloat, 1, args));
Expand Down

0 comments on commit 8ebeff4

Please sign in to comment.