On 07/11/10 21:47, Christian Weisgerber wrote:
Currently, comms/hylafax fails to build on i386:

faxQueueApp.c++: In member function 'void faxQueueApp::preparePageChop(const 
FaxRequest&, TIFF*, const Class2Params&, fxStr&)':
faxQueueApp.c++:1025: error: call of overloaded 'fxmin(unsigned int, long 
unsigned int)' is ambiguous
././util/Types.h:52: note: candidates are: int fxmin(int, int)
././util/Types.h:53: note:                 u_long fxmin(u_long, u_long)
././util/Types.h:54: note:                 u_int fxmin(u_int, u_int)

This error does *not* happen on amd64.

Apparently, u_int - ptrdiff_t promotes to u_long on i386, but u_int(?)
on amd64.  Huh?

The cast below fixes it, and should be safe in the given context,
but still, I don't quite understand this.

I do not know why there is such a difference between platforms, anyway, ok.
 Cheers & Thanks
  Giovanni

Reply via email to