Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 061c166 commit c810252Copy full SHA for c810252
1 file changed
test/native/tests/TestPtr.hx
@@ -180,11 +180,12 @@ class TestPtr extends haxe.unit.TestCase{
180
}
181
182
private static var output:cpp.Pointer<Array<Int>>;
183
+
184
+ private static var arrayValue:Array<Int>;
185
private static function makeValue():{ a:cpp.Pointer<Array<Int>> }
186
{
- var array = new Array<Int>();
- array.push(9);
187
- return { a: cpp.Pointer.addressOf(array) };
+ arrayValue = [9];
188
+ return { a: cpp.Pointer.addressOf(arrayValue) };
189
190
191
@:analyzer(no_fusion)
0 commit comments