Skip to content

Commit 34572e8

Browse files
committed
fix lua backend
1 parent 1e7f27b commit 34572e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/backends/lua.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class BackendLua : CompilerBackend {
122122
override void End() {
123123
// call destructors
124124
foreach (name, global ; globals) {
125-
if (!global.type.hasDeinit && global.type.ptr) continue;
125+
if (!global.type.hasDeinit || global.type.ptr) continue;
126126
auto globalExtra = cast(GlobalExtra*) global.extra;
127127

128128
output ~= format("mem[dsp] = %d\n", globalExtra.addr);

0 commit comments

Comments
 (0)