[fpc-pascal]constant longword problem

Marc Santhoff M.Santhoff at t-online.de
Sun Mar 21 15:06:48 CET 2004


Am So, den 21.03.2004 schrieb Peter Vreman um 14:45:
> At 14:29 21-3-2004, you wrote:
> >Hi!
> >
> >Using fpc 1.0.10 on FreeBSD ig do this:
> >
> >USB_DO_REQUEST : longword = 3222820207;
> >
> >and the compiler says:
> >
> >usb_h.pp(43,39) Error: Illegal expression
> >
> >Why thar? The maximum value of longword is bigger, and if i declare it
> >to be longint it compiles. But this constant is to be used for an
> >ioctl() and I'm afraid, the signed value will not work.
> >
> >USB_DO_REQUEST : longint =  -1072147089;
> >
> >Compiling usb_h.pp
> >Assembling usb_h
> >45 Lines compiled, 0.0 sec
> 
> Constants > maxlongint are not supported in 1.0.x. You need to use 1.9.x

Ah, I see.

Thank you,
Marc






More information about the fpc-pascal mailing list