]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix signed/unsigned comparison to avoid compilation warning (GH-24441)
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 4 Feb 2021 21:38:18 +0000 (05:38 +0800)
committerGitHub <noreply@github.com>
Thu, 4 Feb 2021 21:38:18 +0000 (21:38 +0000)
PC/winreg.c

index d62a7be28d3fabea651bc86c1d5e5af2842adbe9..fb488d8eb029603ba17ad822ee78c02e202e84f9 100644 (file)
@@ -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;
                 }