FPC fixes3.2 gives error on "NWord div 2 * 2"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FPC fixes3.2 gives error on "NWord div 2 * 2"

AlexeyT
https://github.com/Alexey-T/CudaText/commit/354858b19754d2d5fa2980b5f45fc76d1a266763#diff-c3361b43575e71110f1cea4cf54d8d13R325

this is fixed to avoid %subj% compile error. why error?

--
Regards,
Alexey

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FPC fixes3.2 gives error on "NWord div 2 * 2"

Free Pascal - General mailing list

FPC gives an error on the NWord

Maybe the compiler tries to be politically correct. 😂

Sorry, couldn't resist.

Mattias

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FPC fixes3.2 gives error on "NWord div 2 * 2"

Bart-48
In reply to this post by AlexeyT
On Sun, Feb 17, 2019 at 10:14 PM AlexeyT <[hidden email]> wrote:

> this is fixed to avoid %subj% compile error. why error?

{$mode objfpc}
{$h+}
var
  NSec: Word;
begin
  NSec:= NSec div 2 * 2;
end.

Compiles with trunk (regardles of mode).

--
Bart
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: FPC fixes3.2 gives error on "NWord div 2 * 2"

Nikolay Nikolov-2
In reply to this post by Free Pascal - General mailing list

On 2/17/19 11:29 PM, Mattias Gaertner via fpc-pascal wrote:
> FPC gives an error on the NWord
>
> Maybe the compiler tries to be politically correct. 😂
>
> Sorry, couldn't resist.

That's why it's called FPC - the Free Politically Correct compiler ;-)

Nikolay

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal