diff --git a/std/cpp/_std/haxe/atomic/AtomicInt.hx b/std/cpp/_std/haxe/atomic/AtomicInt.hx index 900533d8128..ca01f0f72c9 100644 --- a/std/cpp/_std/haxe/atomic/AtomicInt.hx +++ b/std/cpp/_std/haxe/atomic/AtomicInt.hx @@ -5,7 +5,7 @@ extern #end abstract AtomicInt(cpp.Pointer) { public #if !(scriptable || cppia) inline #end function new(value:Int) { - this = cpp.Pointer.ofArray([value]); + this = cpp.Pointer.ofArray([(value:cpp.AtomicInt)]); } public #if !(scriptable || cppia) inline #end function add(b:Int):Int {