aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Schreiner <HenrySchreinerIII@gmail.com>2020-07-23 04:39:03 -0400
committerGitHub <noreply@github.com>2020-07-23 17:39:03 +0900
commit680254a8dc64e3ada00f88a7c42d41eb02108353 (patch)
tree3b4c238070160b9abb4c63975ff416f9c5a967a1 /Include/cpython/unicodeobject.h
parentbpo-4630: Fix errors in Lib/idlelib/NEWS.txt (GH-21594) (diff)
downloadcpython-680254a8dc64e3ada00f88a7c42d41eb02108353.tar.gz
cpython-680254a8dc64e3ada00f88a7c42d41eb02108353.tar.bz2
cpython-680254a8dc64e3ada00f88a7c42d41eb02108353.zip
bpo-41366: Fix clang warning for sign conversion (GH-21592)
Diffstat (limited to 'Include/cpython/unicodeobject.h')
-rw-r--r--Include/cpython/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 615b4a971d5..300408cb262 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -52,7 +52,7 @@
Py_DEPRECATED(3.3) static inline void
Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) {
- memcpy(target, source, length * sizeof(Py_UNICODE));
+ memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
}
Py_DEPRECATED(3.3) static inline void