Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fix pointer post-increment edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Sep 30, 2015
1 parent 69c877c commit 4e13fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSIL/Transforms/UnsafeCodeTransforms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void VisitNode (JSUnaryOperatorExpression uoe) {
(op == JSOperator.PostIncrement) ||
(op == JSOperator.PostDecrement)
) {
var mutated = new JSPointerAddExpression(target, JSLiteral.New(delta), false);
var mutated = new JSPointerAddExpression(target, JSLiteral.New(delta), true);
replacement = new JSCommaExpression(store, mutated, tempVar);
} else {
replacement = new JSPointerAddExpression(target, JSLiteral.New(delta), true);
Expand Down

0 comments on commit 4e13fa4

Please sign in to comment.