From: Tim Peters Date: Thu, 16 Feb 2006 00:35:06 +0000 (+0000) Subject: getpythonregpath(): Squash compiler warning about X-Git-Tag: v2.5a0~669 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7f6cf62473d48b2c814b135b0026e74c3dfc3c5;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/PC/getpathp.c b/PC/getpathp.c index 0701d7315445..37a9c0b9900b 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)