From 93637e987262141896e8e9097dab656a909f5347 Mon Sep 17 00:00:00 2001 From: Pierre Baillet Date: Wed, 28 Sep 2022 22:38:17 +0200 Subject: [PATCH] Fix compilation for lua - Building some Heaps code with a Lua target failed with the following error: ``` /usr/local/lib/haxe/lib/heaps/1,9,1/hxd/fmt/hmd/Library.hx:252: characters 43-63 : hxd._FloatBuffer.InnerData should be haxe.ds._Vector.VectorData> /usr/local/lib/haxe/lib/heaps/1,9,1/hxd/fmt/hmd/Library.hx:252: characters 43-63 : ... For function argument 'data' ``` Adding Lua alongside Neko in this statement makes the build work. --- hxd/fmt/hmd/Library.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hxd/fmt/hmd/Library.hx b/hxd/fmt/hmd/Library.hx index 9a2eded18..4c89dda17 100644 --- a/hxd/fmt/hmd/Library.hx +++ b/hxd/fmt/hmd/Library.hx @@ -241,7 +241,7 @@ class Library { } buf.indexes[i] = rid - 1; } - #if neko + #if (neko||lua) buf.vertexes = haxe.ds.Vector.fromArrayCopy(vertexes.getNative()); #else buf.vertexes = haxe.ds.Vector.fromData(vertexes.getNative()); @@ -753,4 +753,4 @@ class Library { } #end -} \ No newline at end of file +}