Re: [fpc-devel] How to convert Double to Comp without warning

2008-04-04 Thread petr . kristan
On Fri, Apr 04, 2008 at 11:53:03AM +0200, Marco van de Voort wrote: > > How I can make this conversion without warning? > > Overtyping m := Comp(t) is confusing and not delphi compatible. > > FPC is not warning compatible with FPC. Proposed solution looks fine to me. program co; uses Classes, Sy

Re: [fpc-devel] How to convert Double to Comp without warning

2008-04-04 Thread Vincent Snijders
Marco van de Voort schreef: FPC is not warning compatible with FPC. :-) Can you give an example? Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] How to convert Double to Comp without warning

2008-04-04 Thread Marco van de Voort
> How I can make this conversion without warning? > Overtyping m := Comp(t) is confusing and not delphi compatible. FPC is not warning compatible with FPC. Proposed solution looks fine to me. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

[fpc-devel] How to convert Double to Comp without warning

2008-04-04 Thread petr . kristan
Compiling this code: var t: TDateTime; m: Comp; begin t := 1000.999; m := t; end. Throws: Warning: Automatic type conversion from floating type to COMP which is an integer type How I can make this conversion without warning? Overtyping m := Comp(t) is confusing and not delphi compatibl