[vdr] Re: [ANNOUNCE] VDR developer version 1.3.47

Anssi Hannula anssi.hannula at gmail.com
Sun Apr 23 00:27:24 CEST 2006


Klaus Schmidinger wrote:
> Reinhard Nissl wrote:
> 
>>
>> I've got a report of a similar warning in vdr-xine. I suggest this
>> solution:
>>
>> esyslog("ERROR: can't allocate %ld bytes for index '%s'", (long)(size
>> * sizeof(tIndex)), fileName);
> 
> 
> To be honest, I don't like this.
> Shouldn't this work on both 32- and 64bit systems without the need of
> typecasting?

The return type of sizeof() is size_t. The size of size_t is
implementation-defined. With GCC that's unsigned int on ix86 and
unsigned long on x86_64.

-- 
Anssi Hannula




More information about the vdr mailing list