We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e7f27b commit 34572e8Copy full SHA for 34572e8
source/backends/lua.d
@@ -122,7 +122,7 @@ class BackendLua : CompilerBackend {
122
override void End() {
123
// call destructors
124
foreach (name, global ; globals) {
125
- if (!global.type.hasDeinit && global.type.ptr) continue;
+ if (!global.type.hasDeinit || global.type.ptr) continue;
126
auto globalExtra = cast(GlobalExtra*) global.extra;
127
128
output ~= format("mem[dsp] = %d\n", globalExtra.addr);
0 commit comments