From 873e4e203db1ec46b98bdf81dd0b96be30a523af Mon Sep 17 00:00:00 2001 From: Thomas Brain Date: Tue, 23 Apr 2024 10:49:39 -0500 Subject: [PATCH] Fix bug dereferencing namespaces in convert_swig (#1696) --- libexec/trick/convert_swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/trick/convert_swig b/libexec/trick/convert_swig index 27296bdb..ca58cad6 100755 --- a/libexec/trick/convert_swig +++ b/libexec/trick/convert_swig @@ -622,7 +622,7 @@ sub process_class($$$$$) { my $sanitized_namespace = $split_namespaces[-1] ; my @namespace_split = split /namespace\s*$sanitized_namespace/, $$new_contents_ref; $save_namespace_content = 'namespace ' . $sanitized_namespace . $namespace_split[-1]; - $$new_contents_ref = join('namespace ' . $sanitized_namespace, $namespace_split[0 .. $#namespace_split-1]); + $$new_contents_ref = join('namespace ' . $sanitized_namespace, @namespace_split[0 .. $#namespace_split-1]); } # SWIG doesn't like "const static". Change it to "static const"