[syslinux] HDT: Doesn't work with syslinux
Miller, Shao
Shao.Miller at yrdsb.edu.on.ca
Tue Mar 31 08:22:05 PDT 2009
Thanks for the clarification, Jeffrey. I wonder if "unsigned char"
makes sense for BIOS drives. - Shao
-----Original Message-----
From: syslinux-bounces at zytor.com [mailto:syslinux-bounces at zytor.com] On
Behalf Of Jeffrey Hutzelman
Sent: Tuesday, March 31, 2009 11:09
To: For discussion of Syslinux and tftp-hpa
Cc: jhutz at cmu.edu
Subject: Re: [syslinux] HDT: Doesn't work with syslinux
--On Monday, March 30, 2009 10:04:07 PM -0400 "Miller, Shao"
<Shao.Miller at yrdsb.edu.on.ca> wrote:
> Hmm... If the proposed change below were implemented, what would
happen
> on the final iteration?
>
> drive == 0xff
>
> then:
>
> drive++;
Now drive is 0x100, which is not <= 0xff, and the loop ends.
You're probably expecting it to wrap around, because something somewhere
only has 8 bits to represent this quantity. But there is nothing
magical
about a variable named "drive" that gives it this property; it's
declared
as an int and so will be at least 16 bits wide.
_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.
More information about the Syslinux
mailing list