From 6fadcde3cae42c9596489728fd9bd8f3d18acf75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 31 Jan 2016 22:01:05 -0800 Subject: [PATCH] Cleanup. --- tools/bin2c/bin2c.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bin2c/bin2c.cpp b/tools/bin2c/bin2c.cpp index 76232fa..bdb92a4 100644 --- a/tools/bin2c/bin2c.cpp +++ b/tools/bin2c/bin2c.cpp @@ -148,14 +148,14 @@ int main(int _argc, const char* _argv[]) size_t size = 0; bx::CrtFileReader fr; - if (0 == bx::open(&fr, filePath) ) + if (bx::open(&fr, filePath) ) { size = (size_t)bx::getSize(&fr); data = malloc(size); bx::read(&fr, data, size); bx::CrtFileWriter fw; - if (0 == bx::open(&fw, outFilePath) ) + if (bx::open(&fw, outFilePath) ) { Bin2cWriter writer(&fw, name); bx::write(&writer, data, size);