Browse Source

Work around for forward refd problem with g++.

Mark Sibly 8 years ago
parent
commit
bc82f81991
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/monkey/native/bbarray.h

+ 1 - 1
modules/monkey/native/bbarray.h

@@ -190,7 +190,7 @@ template<class T,int D> bbString bbDBType( bbArray<T,D> *p ){
 
 template<class T,int D> bbString bbDBValue( bbArray<T,D> *p ){
 	char buf[64];
-	sprintf( buf,"@%p",p->_rep );
+	sprintf( buf,"@%p",*(void**)(&p->_rep) );
 	return buf;
 }