]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Cast away compiling warning with Win64.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 6 Jan 2009 12:37:21 +0000 (07:37 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 6 Jan 2009 12:37:21 +0000 (07:37 -0500)
SVN-Revision: 384

libarchive/archive_windows.c

index 798f96ac69139601ede3dc1273f05798180841ff..34ecf03757b27f67d21044197d5f0c9dcbac2926 100644 (file)
@@ -317,7 +317,8 @@ la_read(int fd, void *buf, size_t nbytes)
                errno = EBADF;
                return (-1);
        }
-       r = ReadFile((HANDLE)_get_osfhandle(fd), buf, nbytes, &bytes_read, NULL);
+       r = ReadFile((HANDLE)_get_osfhandle(fd), buf, (uint32_t)nbytes,
+           &bytes_read, NULL);
        if (r == 0) {
                lasterr = GetLastError();
                if (lasterr == ERROR_BROKEN_PIPE)