Browse Source

Fix internal name coercion error with new interrogate system

rdb 11 years ago
parent
commit
f6453fd83e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/gobj/internalName.h

+ 2 - 2
panda/src/gobj/internalName.h

@@ -191,8 +191,8 @@ INLINE ostream &operator << (ostream &out, const InternalName &tcn);
 //               by the compiler when passed to such a function.
 ////////////////////////////////////////////////////////////////////
 #ifdef CPPPARSER
-// This construct confuses interrogate, so we give it a typedef.
-typedef const InternalName *CPT_InternalName;
+// The construct below confuses interrogate, so we give it a typedef.
+typedef ConstPointerTo<InternalName> CPT_InternalName;
 #else
 class CPT_InternalName : public ConstPointerTo<InternalName> {
 public: