From 30d706a56239570bf3ea72416fee43e264287a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 6 Jan 2019 11:52:21 -0800 Subject: [PATCH] Fixed VS build. --- examples/40-svt/vt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/40-svt/vt.cpp b/examples/40-svt/vt.cpp index 028388925..4913d1ddb 100644 --- a/examples/40-svt/vt.cpp +++ b/examples/40-svt/vt.cpp @@ -1177,7 +1177,7 @@ bool TileGenerator::generate(const bx::FilePath& _filename) return false; } - uint8_t* rawImage = (uint8_t*)BX_ALLOC(VirtualTexture::getAllocator(), size); + uint8_t* rawImage = (uint8_t*)BX_ALLOC(VirtualTexture::getAllocator(), size_t(size) ); bx::read(&fileReader, rawImage, int32_t(size), &err); bx::close(&fileReader);