Skip to content
Snippets Groups Projects
Commit a11556bd4fc8 authored by Matthew Dempsky's avatar Matthew Dempsky
Browse files

fix another sign-extension bug

git-svn-id: http://simplejson.googlecode.com/svn/trunk@116 a4795897-2c25-0410-b006-0d3caba88fa1
parent 1b0f3c380215
Branches
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@
chars = 0;
output[chars++] = '"';
for (i = 0; i < input_chars; i++) {
Py_UNICODE c = (Py_UNICODE)input_str[i];
Py_UNICODE c = (Py_UNICODE)(unsigned char)input_str[i];
if (S_CHAR(c)) {
output[chars++] = (char)c;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment