瀏覽代碼

fix compilation error

David Rose 19 年之前
父節點
當前提交
7716080a27
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
 }