* in SysUtils.DecodeDate(), cast the result of trunc() to longint (trunc normally returns int64 in FPC), before performing any further calculations - the result always fits in a longint (the date is range checked against MaxDateTime and that is well within longint limits). This generates faster code on non 64-bit targets and also fixes i8086 compilation, which previously failed on register allocation on this function.