Am 11.01.2018 21:46 schrieb "J. Gareth Moreton" <gar...@moreton-family.com>:
Possibly related, but the compiler automatically treats numbers larger than or equal to $8000000000000000 as signed (Int64) regardless of the context or what it's being assigned to (this usually involves compiler warnings, but also involves causing div to be signed instead of unsigned unless the constant is explicitly typecast, which raises the aforementioned internal error on 'div', but not 'mod'). That such a constant is Int64 is by design as Pascal is a language that favors the signed types. If you want an unsigned constant then you need to do a cast to a suitable type. Of course if that cast leads to an internal error then that needs to be solved. Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel