Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598607d commit c768ffeCopy full SHA for c768ffe
larray-mmap/src/main/java/xerial/larray/impl/LArrayNative.c
@@ -67,7 +67,7 @@ JNIEXPORT jlong JNICALL Java_xerial_larray_impl_LArrayNative_mmap
67
}
68
69
mapping = CreateFileMapping(fileHandle, NULL, fileProtect, highLen, lowLen, NULL);
70
- mapAddress = MapViewOfFile(mapping, mapAccess, highOffset, lowOffset, (DWORD) size);
+ mapAddress = MapViewOfFile(mapping, mapAccess, highOffset, lowOffset, (size_t) size);
71
72
result = CloseHandle(mapping);
73
return (jlong) mapAddress;
0 commit comments