still overload missing for min/max after 33161 is closed
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
The overloads for min/max for cardinal are commented out, but that causes Lazarus trunk to fail in multiple places.
If the cause of the trouble is in the function's body, they maybe can be rewritten like so:
function min(a,b:dword):dword;
begin
result := a;
if a > b then result := b;
end;
function max(a,b:dword):dword;
begin
result := b;
if a > b then result := a;
end;
Steps to reproduce:
Build lazarus trunk: fails.
Additional information:
After I added the above solution, lazarus builds again.
The body will generate distinctly different assembler with my solution.
If the cause of the potential trouble is otherwise, I have no problem fixing it at the lazarus side, but plz document why it causes trouble and what kind of trouble.
Mantis conversion info:
- Mantis ID: 36251
- OS: raspbian
- OS Build: buster
- Platform: armhf
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43382 (#b8f186da)
- Monitored by: » mftq75 (C Western)