Lazcollections no longer compiles
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
SVN 63811 modified LazCollections. The modification breaks compilation of Lazarus projects using FPC 3.2.0, tested on both Darwin and Linux. The change is here
https://github.com/graemeg/lazarus/commit/29bcfe706978493beacaa06e9010eca944e67f23
The problem is line 215:
c:=Max(FQueueSize + ADelta, FTotalItemsPushed - FTotalItemsPopped);
The error is:
Can't determine which overloaded function to call.
The result c is an integer. I am not sure if FTotalItemsPushed is always greater than FTotalItemsPopped, which would bias one to used signed or unsigned values.
As a kludge, this works:
c:=Max(Int64(FQueueSize + ADelta), int64(FTotalItemsPushed - FTotalItemsPopped));
Mantis conversion info:
- Mantis ID: 37626
- OS: Darwin
- OS Build: 10.11.6
- Build: 63814
- Platform: MacBook 2012 Retina 13"
- Version: 2.1 (SVN)