[hatari-devel] Wotanoid problem : Fixed for me ;)
Laurent Sallafranque
laurent.sallafranque at free.fr
Sun Jan 24 10:17:21 CET 2010
Hello,
I was really tired yesterday.
The corect code is of course :
if (Size == -1)
Size = FileSize;
But I think Size should be declared as unsigned instead of signed.
Do you agree ?
Regards,
Laurent
George Nakos a écrit :
> Hello Laurent,
>
> Sunday, January 24, 2010, 1:21:17 AM, you wrote:
>
>
>> Sorry, little mistake, the problem is in Fread, not Fopen.
>>
>
>
>> I've looked at the compendium.
>> I haven't found anything about this -1 length call.
>>
>
> My memory is a bit hazy, but I think this just tells gemdos to read
> $ffffffff bytes from the file. Of course gemdos will read as much as
> the file size and then return an error in d0.l. It's the lazy man's
> approach to doing things the Right Way(tm) (i.e. getting the file
> length -or knowing it beforehand- and calling fread() with the proper
> amount of bytes)
>
>
More information about the hatari-devel
mailing list