summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-20 12:08:14 (GMT)
committerGitHub <noreply@github.com>2022-06-20 12:08:14 (GMT)
commit81686e701cda58fc155f9bbd2fe07c523185914b (patch)
tree67a4c1555afd5ede2e9c74cf09127b9ce8547039 /Objects
parent5abe4cbe88ecae2f52aa2b320dfbc7b9d1572a10 (diff)
downloadcpython-81686e701cda58fc155f9bbd2fe07c523185914b.zip
cpython-81686e701cda58fc155f9bbd2fe07c523185914b.tar.gz
cpython-81686e701cda58fc155f9bbd2fe07c523185914b.tar.bz2
gh-84461: Silence some compiler warnings on WASM (GH-93978)
(cherry picked from commit 774ef28814d0d9d57ec813cb31b0a7af6c476127) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringlib/fastsearch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h
index b91082b..7403d8a 100644
--- a/Objects/stringlib/fastsearch.h
+++ b/Objects/stringlib/fastsearch.h
@@ -345,7 +345,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);
}