"use integer" limits integers to 2^31-1 on 32 bits, which makes
imgsize to be -1 on DVD images
Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
#
use bytes;
-use integer;
use Fcntl;
# Use this fake geometry (zipdrive-style...)
$frac = $imgsize % $cylsize;
$padding = ($frac > 0) ? $cylsize - $frac : 0;
$imgsize += $padding;
-$c = $imgsize/$cylsize;
+$c = int($imgsize/$cylsize);
if ($c > 1024) {
print STDERR "Warning: more than 1024 cylinders ($c).\n";
print STDERR "Not all BIOSes will be able to boot this device.\n";