From 28873a70503c9e700fe05c3f9c781dbd6ea19b14 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 5 Feb 2021 05:38:18 +0800 Subject: Fix signed/unsigned comparison to avoid compilation warning (GH-24441) --- PC/winreg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PC/winreg.c b/PC/winreg.c index d62a7be28d3..fb488d8eb02 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -680,7 +680,7 @@ _Py_COMP_DIAG_POP assert(size > 0); len = PyUnicode_AsWideChar(t, P, size); assert(len >= 0); - assert(len < size); + assert((unsigned)len < size); size -= (DWORD)len + 1; P += len + 1; } -- cgit v1.2.3-65-gdbad