Open katalym opened 7 months ago
Hi Pavel,
Thank you for reporting. I have checked all the warnings, and they are all false alarms. However, I have gone ahead and made the typecasts explicit so that the warnings will no longer be reported.
Best regards, Pierre
Thank you Pierre! Best Regards, Pavel
Hi Pierre
There is one more of these at line 8786:
AMemoryManagerState.SmallBlockTypeStates[i].UseableBlockSize := SmallBlockManagers[0][i].BlockSize - CSmallBlockHeaderSize;
It seems the result of subtracting a constant number from a Word/Cardinal is always an integer, and so the warning. I think it is safe to put Cardinal(...) round the whole of the right-hand-side or simply mark it as OK using the $WARN directives. I don't know which you prefer
Regards, Stuart
When compile the FatMM5.pas with "implicit integer warnings" ON,
dproj:
There are multiple warnings (32 and 64 bit), most of them look innocent, but just to be on the safe side please review:
Thank you, Pavel (BroadView Software)