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.
docking
Ben Vanik 7 years ago committed by GitHub
parent 7f58bb03c1
commit 6ec50d6bf5

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

Loading…
Cancel
Save