[fpc-pascal]Cardinal Assignment

Chuck welch borg at rapfire.net
Fri Jun 21 01:54:30 CEST 2002


Hello,

With fpc 1.0.4 the following compiles ok on linux:

var 

  card : cardinal;

Begin
  card := 3858954154;
end.

But under 1.0.6 I get a "Incompatible types: got "S80REAL" expected "ULONG"

Trying to do a card := Round() or Trunc results in a range check error.

How can I assign a value this large to a cardinal?

 
Thanks

Chuck

borg at rapfire.net




More information about the fpc-pascal mailing list