Fix type in SWIG_DIRECTOR_CAST
This commit is contained in:
parent
c87047fd39
commit
1eabe1b29b
1 changed files with 1 additions and 1 deletions
|
|
@ -948,7 +948,7 @@ public:
|
||||||
Printf(f->code, "arg->newobject = zval_get_long(&args[1]);\n");
|
Printf(f->code, "arg->newobject = zval_get_long(&args[1]);\n");
|
||||||
if (Swig_directorclass(class_node)) {
|
if (Swig_directorclass(class_node)) {
|
||||||
Printv(f->code, "if (arg->newobject == 0) {\n",
|
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",
|
" if (director) director->swig_disown();\n",
|
||||||
"}\n", NIL);
|
"}\n", NIL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue