From 6ec50d6bf5f9e4f853a664dcb13357958d9f7f19 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 3 Oct 2017 11:45:25 -0700 Subject: [PATCH] Fix binary_to_compressed_c tool to return 0 when successful Returning 1 is seen as an error by many tools, making it tricky to integrate this into build systems as-is. --- extra_fonts/binary_to_compressed_c.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra_fonts/binary_to_compressed_c.cpp b/extra_fonts/binary_to_compressed_c.cpp index ee160a42..e373e69c 100644 --- a/extra_fonts/binary_to_compressed_c.cpp +++ b/extra_fonts/binary_to_compressed_c.cpp @@ -53,8 +53,7 @@ int main(int argc, char** argv) } } - binary_to_compressed_c(argv[argn], argv[argn+1], use_base85_encoding, use_compression); - return 1; + return binary_to_compressed_c(argv[argn], argv[argn+1], use_base85_encoding, use_compression) ? 0 : 1; } char Encode85Byte(unsigned int x)