Skip to content

Commit

Permalink
Try to fix the C# CI failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Nov 21, 2022
1 parent f6bd8ce commit 1a7b367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions std/cs/_std/haxe/atomic/AtomicInt.hx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ abstract AtomicInt(IntWrapper) to IntWrapper {
}

public inline function compareExchange(expected:Int, replacement:Int):Int {
return untyped __cs__("System.Threading.Interlocked.CompareExchange(ref {0}.value, {1}, {2})", this, replacement, expected);
return cs.Syntax.code("System.Threading.Interlocked.CompareExchange(ref ({0}).value, {1}, {2})", this, replacement, expected);
}

public inline function exchange(value:Int):Int {
return untyped __cs__("System.Threading.Interlocked.Exchange(ref {0}.value, {1})", this, value);
return cs.Syntax.code("System.Threading.Interlocked.Exchange(ref ({0}).value, {1})", this, value);
}

public inline function load():Int {
Expand Down
4 changes: 2 additions & 2 deletions std/cs/_std/haxe/atomic/AtomicObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ extern abstract AtomicObject<T:{}>(ObjectWrapper<T>) {
}

public inline function compareExchange(expected:T, replacement:T):T {
return untyped __cs__("System.Threading.Interlocked.CompareExchange(ref {0}.value, {1}, {2})", this, replacement, expected);
return cs.Syntax.code("System.Threading.Interlocked.CompareExchange(ref ({0}).value, {1}, {2})", this, replacement, expected);
}

public inline function exchange(value:T):T {
return untyped __cs__("System.Threading.Interlocked.Exchange(ref {0}.value, {1})", this, value);
return cs.Syntax.code("System.Threading.Interlocked.Exchange(ref ({0}).value, {1})", this, value);
}

public inline function load():T {
Expand Down

0 comments on commit 1a7b367

Please sign in to comment.