[comp.sys.mac] LSC FileMgr.h bug

tedj@hpcilzb.HP.COM (Ted Johnson) (02/03/88)

There are 2 bugs in the Lightspeed C header file "FileMgr.h" (LSC v.2.13, 
with the 2.15 libraries).


"int ioVNmAlBlks"  should be     "unsigned int ioVNmAlblks", and
"int vcbNmBlks"    should be     "unsigned int vcbNmBlks"


I.M. IV, page 130 describes the ioVNmAlBlks field as an "INTEGER", 
*but* at the top of the page there is a "Note:" which says that
this field is really an unsigned integer!  I.M. had to define it 
as a normal INTEGER though, because Pascal doesn't distinguish 
between signed and unsigned integers.

BTW, I discovered this bug when the code I wrote
to determine the amount of disk space on a
hard disk kept returning a negative number.  It 
turned out that the top bit of ioVNmBlks was being interpreted
as a sign bit.

I have talked with Rich (Think Technologies QA technician, on leave...)
and he concurs that this is a bug.

-Ted

---------------------------------------
Ted C. Johnson
Hewlett Packard
Design Technology Center
(408)553-3555
UUCP: ...hplabs!hpdtc!tedj