summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-19 23:14:49 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-19 23:14:49 (GMT)
commit6715828d89fcb70f6a398f7488c090763acf0084 (patch)
treea32b343621cc450a98107fecd9ab52fb85d2e504 /PC
parentf8e3221fa5eb6b0b1b30075959ff4bbab3e4f45a (diff)
downloadcpython-6715828d89fcb70f6a398f7488c090763acf0084.zip
cpython-6715828d89fcb70f6a398f7488c090763acf0084.tar.gz
cpython-6715828d89fcb70f6a398f7488c090763acf0084.tar.bz2
_msi.c: Fix compiler warnings on Windows 64-bit
"hf" type is INT_PTR, it is used to store an int in _msi.c.
Diffstat (limited to 'PC')
-rw-r--r--PC/_msi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index eb69014..6a99b40 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -63,7 +63,7 @@ static FNFCIOPEN(cb_open)
static FNFCIREAD(cb_read)
{
- UINT result = (UINT)_read(hf, memory, cb);
+ UINT result = (UINT)_read((int)hf, memory, cb);
if (result != cb)
*err = errno;
return result;
@@ -71,7 +71,7 @@ static FNFCIREAD(cb_read)
static FNFCIWRITE(cb_write)
{
- UINT result = (UINT)_write(hf, memory, cb);
+ UINT result = (UINT)_write((int)hf, memory, cb);
if (result != cb)
*err = errno;
return result;
@@ -79,7 +79,7 @@ static FNFCIWRITE(cb_write)
static FNFCICLOSE(cb_close)
{
- int result = _close(hf);
+ int result = _close((int)hf);
if (result != 0)
*err = errno;
return result;
@@ -87,7 +87,7 @@ static FNFCICLOSE(cb_close)
static FNFCISEEK(cb_seek)
{
- long result = (long)_lseek(hf, dist, seektype);
+ long result = (long)_lseek((int)hf, dist, seektype);
if (result == -1)
*err = errno;
return result;