mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 11:21:38 +00:00
fix warning up from vs2015
This commit is contained in:
parent
41599e2583
commit
df4ffc00d6
10
xmltest.cpp
10
xmltest.cpp
@ -1513,14 +1513,14 @@ int main( int argc, const char ** argv )
|
||||
QueryPerformanceFrequency((LARGE_INTEGER*)&freq);
|
||||
#endif
|
||||
|
||||
FILE* fp = fopen( "resources/dream.xml", "r" );
|
||||
fseek( fp, 0, SEEK_END );
|
||||
FILE* perfFP = fopen("resources/dream.xml", "r");
|
||||
fseek(perfFP, 0, SEEK_END);
|
||||
long size = ftell(fp);
|
||||
fseek( fp, 0, SEEK_SET );
|
||||
fseek(perfFP, 0, SEEK_SET);
|
||||
|
||||
char* mem = new char[size + 1];
|
||||
fread( mem, size, 1, fp );
|
||||
fclose( fp );
|
||||
fread(mem, size, 1, perfFP);
|
||||
fclose(perfFP);
|
||||
mem[size] = 0;
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
|
Loading…
x
Reference in New Issue
Block a user