[fpc-devel] fpc-svn177-units-Mysql broken

Alexandrov Alexandru alexandru.alexandrov at gmail.com
Fri Jun 3 10:32:17 CEST 2005


IMHO we don't need date on 64 bit:

   TDateTimeRec = record
     case TFieldType of
       ftDate: (Date: integer);
       ftTime: (Time: integer);
       ftDateTime: (DateTime: TDateTimeAlias);
   end;



On 6/3/05, Peter Vreman <peter at freepascal.org> wrote:
> At 08:09 3-6-2005, you wrote:
> >there is an inconsistency:
> >
> >   TDateTimeRec = record
> >     case TFieldType of
> >       ftDate: (Date: Longint);
> >       ftTime: (Time: Longint);
> >       ftDateTime: (DateTime: TDateTimeAlias);
> >   end;
> >
> >    TTimeStamp = record
> >       Time: integer;   { Number of milliseconds since midnight }
> >       Date: integer;   { One plus number of days since 1/1/0001 }
> >    end ;
> >
> >TTimeStamp,Date is integer, and TDateTimeRec.ftDate is longint.
> >
> >on AMD 64 integer<>longint?
> 
> integer is 32 bit.
> 
> 
> Peter
> 
>




More information about the fpc-devel mailing list