• scottmg's avatar
    Fix truncation warning in PEImage on VS2015 · 85fd8b54
    scottmg authored
    d:\src\cr3\src\base\win\pe_image.h(250): error C2220: warning treated as error - no 'object' file generated
    d:\src\cr3\src\base\win\pe_image.h(250): warning C4302: 'reinterpret_cast': truncation from 'LPCSTR' to 'WORD'
    
    Separate ptr->int from truncation to WORD.
    
    Also, while we're here, fix a cast in IsOrdinal.
    
    R=cpu@chromium.org
    BUG=440500
    
    Review URL: https://codereview.chromium.org/883873002
    
    Cr-Commit-Position: refs/heads/master@{#313543}
    85fd8b54
pe_image.h 10.3 KB