Skip to content

Commit e8dda90

Browse files
bpo-41366: Fix clang warning for sign conversion (GH-21592)
(cherry picked from commit 680254a) Co-authored-by: Henry Schreiner <[email protected]>
1 parent 4cf7afc commit e8dda90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/unicodeobject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extern "C" {
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)