diff --git a/libntfs/device.c b/libntfs/device.c index 9ba4b6f2..4d192e1c 100644 --- a/libntfs/device.c +++ b/libntfs/device.c @@ -454,7 +454,7 @@ s64 ntfs_device_size_get(struct ntfs_device *dev, int block_size) { s64 high, low; #ifdef BLKGETSIZE - long size; + unsigned long size; if (dev->d_ops->ioctl(dev, BLKGETSIZE, &size) >= 0) { Dprintf("BLKGETSIZE nr 512 byte blocks = %ld (0x%ld)\n", size,