aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.com>2009-04-24 18:59:17 +0200
committerH. Peter Anvin <hpa@zytor.com>2009-05-01 11:01:51 -0700
commita54e6fe85a89324e106e4c3d17c3f51c28e4ef4f (patch)
tree8c7ef9ec4d6f95a3c654b3ba6a5dad3046a75f43 /utils
parentd56215456c4887e1ebe8c9e6d1fa5ad6bee20d85 (diff)
downloadsyslinux-a54e6fe85a89324e106e4c3d17c3f51c28e4ef4f.tar.gz
syslinux-a54e6fe85a89324e106e4c3d17c3f51c28e4ef4f.tar.xz
syslinux-a54e6fe85a89324e106e4c3d17c3f51c28e4ef4f.zip
isohybrid: support iso images over 2GB
"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>
Diffstat (limited to 'utils')
-rw-r--r--utils/isohybrid.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/isohybrid.in b/utils/isohybrid.in
index 46710368..e98c59f6 100644
--- a/utils/isohybrid.in
+++ b/utils/isohybrid.in
@@ -17,7 +17,6 @@
#
use bytes;
-use integer;
use Fcntl;
# Use this fake geometry (zipdrive-style...)
@@ -92,7 +91,7 @@ $cylsize = $h*$s*512;
$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";