From 0138c4ceab1e10d42d0aa962d2ae079b46da7671 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 27 Aug 2019 09:55:13 -0700 Subject: Fix unused variable and signed/unsigned warnings (GH-15537) --- Python/pystrhex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pystrhex.c') diff --git a/Python/pystrhex.c b/Python/pystrhex.c index 5dc7c96137..9d34f71a2e 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; } -- cgit v1.2.1