Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

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

  • 1 Comment sorted by Votes Date Added
  • edited October 2018 Posts: 0Vote Up0Vote Down
    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.