On Friday 14 March 2008 15:57:44 Bob Rogers wrote:

>    Parrot_readbc declares read_result as INTVAL, but assigns to it the
> result of fread, which (on my system) is declared to return a size_t.
> But later there is a check for a negative result, which makes no sense.
> Are there systems on which fread returns a signed value, or should the
> declaration of read_result be changed?  TIA,

My manpage suggests that fread returns size_t, and that's part of C89 and 
POSIX.1-2000, so go ahead and apply.

-- c

Reply via email to