summaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-02 14:34:01 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-02 17:18:20 -0300
commit3a4263a603b8caa4f93dcd534971bf7ffaf65e9f (patch)
treefc98bf94b965e9f5f35c7150463b4966d7620e49 /libshiboken/conversions.h
parentac7573693042bc8f9d4d94958d89d5b15add39f2 (diff)
downloadshiboken-3a4263a603b8caa4f93dcd534971bf7ffaf65e9f.tar.gz
shiboken-3a4263a603b8caa4f93dcd534971bf7ffaf65e9f.tar.xz
shiboken-3a4263a603b8caa4f93dcd534971bf7ffaf65e9f.zip
Use polymorphic-id-expression to discover the correct type of a C++ object.
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r--libshiboken/conversions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index 5b559308..3426f943 100644
--- a/libshiboken/conversions.h
+++ b/libshiboken/conversions.h
@@ -160,7 +160,7 @@ struct ConverterBase<T*> : ConverterBase<T>
return 0;
SbkBaseWrapperType* shiboType = reinterpret_cast<SbkBaseWrapperType*>(pyobj->ob_type);
if (shiboType->mi_specialcast)
- return (T*) shiboType->mi_specialcast(pyobj, reinterpret_cast<SbkBaseWrapperType*>(SbkType<T>()));
+ return (T*) shiboType->mi_specialcast(SbkBaseWrapper_cptr(pyobj), reinterpret_cast<SbkBaseWrapperType*>(SbkType<T>()));
return (T*) SbkBaseWrapper_cptr(pyobj);
}
};