From 9fb065f2a6798233525042c00beee23a8130864a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 14 Oct 2004 05:59:28 +0000 Subject: r2962: Tweak to get conversion function for pointers to union compiling again. (This used to be commit 8c9c94d578651c5884db0aa0feb6e16858274fbb) --- source4/build/pidl/swig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/build/pidl') diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm index 76ef99b631..7fad25d258 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/build/pidl/swig.pm @@ -547,7 +547,7 @@ sub ParseUnion($) $result .= "\tif (switch_is == $e->{CASE}) {\n"; my $prefix = util::c_pull_prefix($e); if (defined $e->{DATA}{NAME}) { - $result .= "\t\tPyDict_SetItemString(obj, \"$e->{DATA}{NAME}\", $e->{DATA}{TYPE}_ptr_to_python(mem_ctx, $prefix\u->$e->{DATA}{NAME}));\n"; + $result .= "\t\tPyDict_SetItemString(obj, \"$e->{DATA}{NAME}\", $e->{DATA}{TYPE}_ptr_to_python(mem_ctx, ${prefix}u->$e->{DATA}{NAME}));\n"; } $result .= "\t}\n"; } -- cgit