Psiconv compilation


Subject: Psiconv compilation
From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Sat Jan 20 2001 - 04:23:02 CST


Hello,

I'm trying to compile the psiconv library on MacOS. I get this error:

Error : illegal implicit conversion from 'unsigned long *' to
'int *'
parse_image.c line 267 linelen,&linepos,picsize)) {

Lines 266-267 are
       if
(decode_byte(lev+3,off+len+datanr,*result,&pixelnr,temp,bits_per_pixel,
                   linelen,&linepos,picsize)) {

decodebyte take a int * as a last parameter while picsize is declared
as psiconv_u32.

Basically, this is a type problem, and since there is no guarantee
that 'int' be a 32-bits value (it is in the present case, ie PowerPC
code, but in 68k it may not be), I think that this should be avoided.
What shall I do (instead of a mad wild typecase) ?

Hub



This archive was generated by hypermail 2b25 : Sat Jan 20 2001 - 04:20:07 CST