diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-02-16 00:35:06 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-02-16 00:35:06 (GMT) |
commit | c7f6cf62473d48b2c814b135b0026e74c3dfc3c5 (patch) | |
tree | e4bf19b1f225ea25f848a0b061fa962790c0113f /PC | |
parent | 4701af5bf5ba082d67b9e9c962650ca3d48fcb46 (diff) | |
download | cpython-c7f6cf62473d48b2c814b135b0026e74c3dfc3c5.zip cpython-c7f6cf62473d48b2c814b135b0026e74c3dfc3c5.tar.gz cpython-c7f6cf62473d48b2c814b135b0026e74c3dfc3c5.tar.bz2 |
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).
Diffstat (limited to 'PC')
-rw-r--r-- | PC/getpathp.c | 4 |
1 files 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) |