summaryrefslogtreecommitdiffstats
path: root/Python/pystrhex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pystrhex.c')
-rw-r--r--Python/pystrhex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystrhex.c b/Python/pystrhex.c
index 5dc7c96..9d34f71 100644
--- a/Python/pystrhex.c
+++ b/Python/pystrhex.c
@@ -57,7 +57,7 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
}
resultlen += arglen * 2;
- if (abs_bytes_per_sep >= arglen) {
+ if ((size_t)abs_bytes_per_sep >= (size_t)arglen) {
bytes_per_sep_group = 0;
abs_bytes_per_sep = 0;
}