Skip to content

Commit

Permalink
Update Int64.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Sep 2, 2024
1 parent dea16a1 commit 31960cd
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions std/haxe/Int64.hx
Original file line number Diff line number Diff line change
Expand Up @@ -229,34 +229,30 @@ abstract Int64(__Int64) from __Int64 to __Int64 {

@:op(++A) private inline function preIncrement():Int64 {
this = copy();
++this.low;
this.low++;
if (this.low == 0)
++this.high;
this.high++;
return cast this;
}

@:op(A++) private inline function postIncrement():Int64 {
this = copy();
this.low++;
if (this.low == 0)
this.high++;
return cast this;
var ret = this;
preIncrement();
return ret;
}

@:op(--A) private inline function preDecrement():Int64 {
this = copy();
if (this.low == 0)
--this.high;
--this.low;
this.high--;
this.low--;
return cast this;
}

@:op(A--) private inline function postDecrement():Int64 {
this = copy();
if (this.low == 0)
this.high--;
this.low--;
return cast this;
var ret = this;
preDecrement();
return ret;
}

/**
Expand Down

0 comments on commit 31960cd

Please sign in to comment.