Kaydet (Commit) e1f17c6c authored tarafından Victor Stinner's avatar Victor Stinner

unicodeobject.c: fix a compiler warning on Windows 64 bits

üst 0861ccbf
......@@ -7015,7 +7015,8 @@ decode_code_page_errors(UINT code_page,
assert(outsize <= PyUnicode_WSTR_LENGTH(*v));
if (unicode_resize(v, outsize) < 0)
goto error;
ret = in - startin;
/* (in - startin) <= size and size is an int */
ret = Py_SAFE_DOWNCAST(in - startin, Py_ssize_t, int);
error:
Py_XDECREF(encoding_obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment