summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2021-02-04 21:38:18 (GMT)
committerGitHub <noreply@github.com>2021-02-04 21:38:18 (GMT)
commit28873a70503c9e700fe05c3f9c781dbd6ea19b14 (patch)
tree2fa56d059dd4d8cdbbc80bfab8fcfbe1ed13940d /PC
parent497b5649cf4d4201852cf022037dd7b5f897416a (diff)
downloadcpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.zip
cpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.tar.gz
cpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.tar.bz2
Fix signed/unsigned comparison to avoid compilation warning (GH-24441)
Diffstat (limited to 'PC')
-rw-r--r--PC/winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index d62a7be..fb488d8 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;
}