From c7f6cf62473d48b2c814b135b0026e74c3dfc3c5 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 16 Feb 2006 00:35:06 +0000 Subject: getpythonregpath(): Squash compiler warning about mixing signed and unsigned types in comparison. Relatedly, `dataSize` is declared as DWORD, not as int, so change relevant cast from (int) to (DWORD). --- PC/getpathp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PC/getpathp.c b/PC/getpathp.c index 0701d73..37a9c0b 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c @@ -306,8 +306,8 @@ getpythonregpath(HKEY keyBase, int skipcore) Py_ssize_t len = _tcslen(ppPaths[index]); _tcsncpy(szCur, ppPaths[index], len); szCur += len; - assert(dataSize > len); - dataSize -= (int)len; + assert(dataSize > (DWORD)len); + dataSize -= (DWORD)len; } } if (skipcore) -- cgit v0.12