summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream_vcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c
index 87b03f6e40..422dea02cd 100644
--- a/stream/stream_vcd.c
+++ b/stream/stream_vcd.c
@@ -166,7 +166,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
/* open() can't be used for devices so do it the complicated way */
hd = CreateFile(device, GENERIC_READ, FILE_SHARE_READ, NULL,
OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
- f = _open_osfhandle((long)hd, _O_RDONLY);
+ f = _open_osfhandle((intptr_t)hd, _O_RDONLY);
#else
f=open(p->device,O_RDONLY);
#endif