summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-05-03 16:50:22 +1200
committerOlly Betts <olly@survex.com>2021-05-03 16:51:18 +1200
commit1eabe1b29bde6ac2b7f38d8730b300f867c80ca9 (patch)
treea08156efd59b5bc1db9f74096ffbc19be9a3262f
parentc87047fd39f08af0611815e0b463e2730f72230b (diff)
downloadswig-1eabe1b29bde6ac2b7f38d8730b300f867c80ca9.tar.gz
Fix type in SWIG_DIRECTOR_CAST
-rw-r--r--Source/Modules/php.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}