summaryrefslogtreecommitdiffstats
path: root/Python/pystrhex.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-08-27 16:55:13 (GMT)
committerGitHub <noreply@github.com>2019-08-27 16:55:13 (GMT)
commit0138c4ceab1e10d42d0aa962d2ae079b46da7671 (patch)
tree8077fd01b70f6ba38dd047900b5cefd0c6e4cfa0 /Python/pystrhex.c
parent8bf5fef8737fdd12724b9340d76a4ed391c4ad8a (diff)
downloadcpython-0138c4ceab1e10d42d0aa962d2ae079b46da7671.zip
cpython-0138c4ceab1e10d42d0aa962d2ae079b46da7671.tar.gz
cpython-0138c4ceab1e10d42d0aa962d2ae079b46da7671.tar.bz2
Fix unused variable and signed/unsigned warnings (GH-15537)
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;
}