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.
This commit is contained in:
Ben Vanik 2017-10-03 11:45:25 -07:00 committed by GitHub
parent 7f58bb03c1
commit 6ec50d6bf5

View File

@ -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)