pleriche / FastMM5

FastMM is a fast replacement memory manager for Embarcadero Delphi applications that scales well across multiple threads and CPU cores, is not prone to memory fragmentation, and supports shared memory without the use of external .DLL files.
283 stars 73 forks source link

W1071 Implicit integer cast with potential data loss from 'Cardinal' to 'Integer' #33

Closed AtlasHackert closed 1 year ago

AtlasHackert commented 1 year ago

FastMM5.pas, line 7891: for i := 1 to AMaxDepth do

AMaxDepth is a Cardinal, i is an Integer, resulting in a compiler warning. Since i is otherwise unused. I'd make i a Cardinal as well.

pleriche commented 1 year ago

Thank you for reporting this. I have fixed this warning and all the other W7071 errors.

AtlasHackert commented 1 year ago

Confirmed fixed! Thanks! :)