From a679d91304c1575c107ad53b08babfef1df25db6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 3 Apr 2012 20:40:18 +0000 Subject: [PATCH] Write the bytes as unsigned chars rather than signed in respack, as the array is declared as unsigned Originally committed to SVN as r6649. --- aegisub/tools/common-respack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/tools/common-respack.cpp b/aegisub/tools/common-respack.cpp index 0373fa4b5..99f644377 100644 --- a/aegisub/tools/common-respack.cpp +++ b/aegisub/tools/common-respack.cpp @@ -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++;