Skip to content

Commit

Permalink
fix another sign-extension bug
Browse files Browse the repository at this point in the history
git-svn-id: http://simplejson.googlecode.com/svn/trunk@116 a4795897-2c25-0410-b006-0d3caba88fa1
  • Loading branch information
Matthew Dempsky committed Sep 25, 2008
1 parent 427666d commit 8156501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplejson/_speedups.c
Expand Up @@ -180,7 +180,7 @@ ascii_escape_str(PyObject *pystr)
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;
}
Expand Down

0 comments on commit 8156501

Please sign in to comment.