Adjust block-rounding line to match in serve.c
This commit is contained in:
@@ -103,7 +103,7 @@ int open_and_mmap(const char* filename, int* out_fd, uint64_t *out_size, void **
|
|||||||
*/
|
*/
|
||||||
if ( size != (size & (~0x1ff))) {
|
if ( size != (size & (~0x1ff))) {
|
||||||
warn("file does not fit into 512-byte sectors; the end of the file will be ignored.");
|
warn("file does not fit into 512-byte sectors; the end of the file will be ignored.");
|
||||||
size = size & (~0x1ff);
|
size &= ~0x1ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (out_size) {
|
if (out_size) {
|
||||||
|
Reference in New Issue
Block a user