소스 검색

# fix gcc warning in export API (deleting void* is undefined)

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@906 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 년 전
부모
커밋
f7eca27c1b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/export.h

+ 1 - 1
include/export.h

@@ -107,7 +107,7 @@ struct aiExportDataBlob
 	/// Default constructor
 	aiExportDataBlob() { size = 0; data = NULL; }
 	/// Releases the data
-	~aiExportDataBlob() { delete data; }
+	~aiExportDataBlob() { delete static_cast<char*>( data ); }
 #endif // __cplusplus
 };