Przeglądaj źródła

fix compilation error

David Rose 19 lat temu
rodzic
commit
7716080a27
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      panda/src/express/pointerToArray.I

+ 1 - 1
panda/src/express/pointerToArray.I

@@ -840,7 +840,7 @@ template<class Element>
 INLINE void ConstPointerToArray<Element>::
 node_ref() const {
   if ((this->_void_ptr) == NULL) {
-    ((PointerToArray<Element> *)this)->reassign(new NodeRefCountObj<pvector<Element> >);
+    ((ConstPointerToArray<Element> *)this)->reassign(new NodeRefCountObj<pvector<Element> >);
   }
   ((To *)(this->_void_ptr))->node_ref();
 }