This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Compiler Warningen x64

I get warning in MDGraphUtils.pas(1355)

    if (PInteger(TLMDPtrUInt(dib) + (i * 4))^ and $ff000000) > 0 then

casting to Integer of a Pointer on 64-Bit isn't a good idea.

Comments

  • edited October 2018
    What IDE version you use, and what exact wraning you've got? 
    Actually, in the code you mentioned, TLMDPtrUInt type is an alias for NativeUInt, which is of 64-bit size under x64 platform. PInteger - is also not an Integer, but a Pointer instead. So, nothing is actually wrong with this code.
Sign In or Register to comment.