This commit is contained in:
Branimir Karadžić
2017-03-09 21:41:09 -08:00
parent 271ad24b84
commit bc74556792
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -145,12 +145,12 @@ int main(int _argc, const char* _argv[])
}
void* data = NULL;
size_t size = 0;
uint32_t size = 0;
bx::CrtFileReader fr;
if (bx::open(&fr, filePath) )
{
size = (size_t)bx::getSize(&fr);
size = uint32_t(bx::getSize(&fr) );
data = malloc(size);
bx::read(&fr, data, size);