mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-84461: Silence some compiler warnings on WASM (GH-93978)
This commit is contained in:
@@ -355,7 +355,7 @@ STRINGLIB(_preprocess)(const STRINGLIB_CHAR *needle, Py_ssize_t len_needle,
|
||||
}
|
||||
// Fill up a compressed Boyer-Moore "Bad Character" table
|
||||
Py_ssize_t not_found_shift = Py_MIN(len_needle, MAX_SHIFT);
|
||||
for (Py_ssize_t i = 0; i < TABLE_SIZE; i++) {
|
||||
for (Py_ssize_t i = 0; i < (Py_ssize_t)TABLE_SIZE; i++) {
|
||||
p->table[i] = Py_SAFE_DOWNCAST(not_found_shift,
|
||||
Py_ssize_t, SHIFT_TYPE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user