Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34888ed

Browse files
committed
Fredrik Lundh: eliminate a MSVC compiler warning.
1 parent 9e896b3 commit 34888ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ int PyUnicode_EncodeDecimal(Py_UNICODE *s,
19591959
continue;
19601960
}
19611961
if (0 < ch < 256) {
1962-
*output++ = ch;
1962+
*output++ = (char) ch;
19631963
continue;
19641964
}
19651965
/* All other characters are considered invalid */

0 commit comments

Comments
 (0)