[cc65] possible bug in cbm_dir.c

From: Groepaz <groepaz1gmx.net>
Date: 2004-07-06 23:42:16
while building the development snapshot from scratch on my new
powerbook (shameless plug *cough* :=P) i noticed the following
warning...i havent actually checked if it is actually a bug, but
judging from the sourcecode of cbm_dir it could well be...

cbm_dir.c(48): Warning: Shift count too large for operand type

the return value of a kernal routine, which i believe is an
unsigned char, is shifted to the left by 8. i would think that
the proper way to fix it would be changing the line into this:

l_dirent->size = byte | (((unsigned short)cbm_k_basin())<<8);

gpz

ps: what about testing for the existance of sgml2html etc in
the toplevel makefile and skipping the building of the docs
if its not present?

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jul 6 23:36:03 2004

This archive was generated by hypermail 2.1.8 : 2004-07-06 23:36:11 CEST