Recent

Author Topic: Possible bug in Lazarus 4.4?  (Read 1274 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 18707
  • To Europe: simply sell USA bonds: dollar collapses
Re: Possible bug in Lazarus 4.4?
« Reply #15 on: December 08, 2025, 04:14:42 pm »
EDIT: Thaddy missed, that the "original" code also sets Result to i if Result<0
Saw that at once ...


You saw that wrong..... My intention was to fix the logic and I did. Simply recompile Lazarus for proof. The OR was incorrect and what broke it.

If you do not recompile you will never see it is correct.
The reverse logic from Zvoni also compiles and renders the same result.
The second error was passing implicitly -1 to the call, because -1 was used as index where it should have been the index, not [result], but i.
« Last Edit: December 08, 2025, 04:25:41 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

BrunoK

  • Hero Member
  • *****
  • Posts: 762
  • Retired programmer
Re: Possible bug in Lazarus 4.4?
« Reply #16 on: December 08, 2025, 04:53:53 pm »
EDIT: Thaddy missed, that the "original" code also sets Result to i if Result<0
Saw that at once ...


You saw that wrong..... My intention was to fix the logic and I did. Simply recompile Lazarus for proof. The OR was incorrect and what broke it.

You know, Thaddy, you edit all your posta to hide the erroneous code you suggest. It's a constant behaviour of yours.

Alex.Machado

  • New Member
  • *
  • Posts: 40
Re: Possible bug in Lazarus 4.4?
« Reply #17 on: December 08, 2025, 08:29:05 pm »
Thank you all for your responses.


What IS actually the purpose of this Function?


According to the history in github repo, the (faulty) method present in 4.4 was introduced in order to:

Quote
ide: fixed getting deepest designer base class

So I believe this is the purpose.

BTW, I rebuilt Lazarus 4.4 with the new function in trunk (as mentioned by @Bytebites) and it works, or at least doesn't give me any exceptions.

Cheers,

 

TinyPortal © 2005-2018