summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 615b4a9..300408c 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