Skip to content

Commit 680254a

Browse files
authored
bpo-41366: Fix clang warning for sign conversion (GH-21592)
1 parent 592527f commit 680254a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
Py_DEPRECATED(3.3) static inline void
5454
Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) {
55-
memcpy(target, source, length * sizeof(Py_UNICODE));
55+
memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
5656
}
5757

5858
Py_DEPRECATED(3.3) static inline void

0 commit comments

Comments
 (0)