From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Thu, 4 Feb 2021 21:38:18 +0000 (+0800) Subject: Fix signed/unsigned comparison to avoid compilation warning (GH-24441) X-Git-Tag: v3.10.0a6~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28873a70503c9e700fe05c3f9c781dbd6ea19b14;p=thirdparty%2FPython%2Fcpython.git Fix signed/unsigned comparison to avoid compilation warning (GH-24441) --- diff --git a/PC/winreg.c b/PC/winreg.c index d62a7be28d3f..fb488d8eb029 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; }