We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf7afc commit e8dda90Copy full SHA for e8dda90
Include/cpython/unicodeobject.h
@@ -52,7 +52,7 @@ extern "C" {
52
53
Py_DEPRECATED(3.3) static inline void
54
Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) {
55
- memcpy(target, source, length * sizeof(Py_UNICODE));
+ memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
56
}
57
58
0 commit comments