Skip to content

Commit

Permalink
fix lua backend
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Dec 8, 2024
1 parent 1e7f27b commit 34572e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/backends/lua.d
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class BackendLua : CompilerBackend {
override void End() {
// call destructors
foreach (name, global ; globals) {
if (!global.type.hasDeinit && global.type.ptr) continue;
if (!global.type.hasDeinit || global.type.ptr) continue;
auto globalExtra = cast(GlobalExtra*) global.extra;

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

0 comments on commit 34572e8

Please sign in to comment.