likely bug in FPC v3.2.2 lazarus / 64-FPC development ---------------------------------------------------------------------- 440bx · 2024-07-19 22:40 Hello, Consider this code:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$APPTYPE CONSOLE} program _ComparisonOperators; var  ADword, AnotherDword : DWORD;  begin   ADword       := $48;  AnotherDword := $BC;   if ADword >- AnotherDword then  begin    writeln(ADword, ' is >- ', AnotherDword, ' (whatever that means!)');  end;   readln;end. Note the likely invalid comparison operator in use ">-", yet the compiler doesn't complain.  Running the program shows the comparison is TRUE. Comments welcome. ETA: As correctly pointed out by GAN below, there is no bug.  The compiler "sees" >- as "greater than minus (whatever follows)" which is correct. ---------------------------------------------------------------------- GAN · 2024-07-19 23:12 Hello, a very simple answer/comment: I think the compiler replace with integer values before de comparision, so: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if ADword 72 > -188 then  yes, it is True. ---------------------------------------------------------------------- 440bx · 2024-07-19 23:18 Quote from: GAN on July 20, 2024, 01:12:05 amHello, a very simple answer/comment: I think the compiler replace with integer values before de comparision, so: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if ADword 72 > -188 then  yes, it is True. You are absolutely right.  I didn't think of that and, now that you've pointed it out, it looks obvious. Thank you! Conclusion: no bug in the compiler.  bug in OP's brain that caused incorrect expression parsing