Write the bytes as unsigned chars rather than signed in respack, as the array is declared as unsigned

Originally committed to SVN as r6649.
This commit is contained in:
Thomas Goyne 2012-04-03 20:40:18 +00:00
parent 4bb707d663
commit a679d91304

View file

@ -103,7 +103,7 @@ int main(int argc, const char *argv[]) {
while (ifp_i != eof) {
if (length > 0) file_cpp << ",";
file_cpp << (int)*ifp_i;
file_cpp << (unsigned int)(unsigned char)*ifp_i;
++ifp_i;
length++;