diff options
| author | Tim Peters <tim.peters@gmail.com> | 2006-02-16 00:35:06 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2006-02-16 00:35:06 +0000 |
| commit | 9ace2befa1a76742ca2ff45b2ae71600dfcf921e (patch) | |
| tree | cbc099f8287edb8203992d166d35e21d78b1d0b9 /PC/getpathp.c | |
| parent | 220f1e229c03972b456a9d1be1700965207624ea (diff) | |
| download | cpython-9ace2befa1a76742ca2ff45b2ae71600dfcf921e.tar.gz | |
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/getpathp.c')
| -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 0701d73154..37a9c0b990 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) |
