summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/lseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/lseek.c')
-rw-r--r--otherlibs/win32unix/lseek.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/win32unix/lseek.c b/otherlibs/win32unix/lseek.c
index 06f636fe3..acc7b1004 100644
--- a/otherlibs/win32unix/lseek.c
+++ b/otherlibs/win32unix/lseek.c
@@ -14,6 +14,7 @@
/* $Id$ */
#include <mlvalues.h>
+#include <alloc.h>
#include "unixsupport.h"
#ifdef HAS_UNISTD
@@ -71,5 +72,5 @@ CAMLprim value unix_lseek_64(value fd, value ofs, value cmd)
uerror("lseek", Nothing);
}
}
- return copy_int64(ofs_high << 32 | ret);
+ return copy_int64((int64) ofs_high << 32 | ret);
}