From 1eabe1b29bde6ac2b7f38d8730b300f867c80ca9 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 3 May 2021 16:50:22 +1200 Subject: [PATCH] Fix type in SWIG_DIRECTOR_CAST --- Source/Modules/php.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 540fd3538..b763867b5 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -948,7 +948,7 @@ public: Printf(f->code, "arg->newobject = zval_get_long(&args[1]);\n"); if (Swig_directorclass(class_node)) { Printv(f->code, "if (arg->newobject == 0) {\n", - " Swig::Director *director = SWIG_DIRECTOR_CAST((", Getattr(class_node, "classtypeobj"), "*)(arg->ptr));\n", + " Swig::Director *director = SWIG_DIRECTOR_CAST((", Getattr(class_node, "classtype"), "*)(arg->ptr));\n", " if (director) director->swig_disown();\n", "}\n", NIL); }