diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-02-05 05:38:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 21:38:18 +0000 |
commit | 28873a70503c9e700fe05c3f9c781dbd6ea19b14 (patch) | |
tree | 2fa56d059dd4d8cdbbc80bfab8fcfbe1ed13940d | |
parent | build(deps): bump actions/cache from v2.1.3 to v2.1.4 (#24446) (diff) | |
download | cpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.tar.gz cpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.tar.bz2 cpython-28873a70503c9e700fe05c3f9c781dbd6ea19b14.zip |
Fix signed/unsigned comparison to avoid compilation warning (GH-24441)
-rw-r--r-- | PC/winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |