• Nick Wellnhofer's avatar
    Fix pointer/int cast warnings on 64-bit Windows · d422b954
    Nick Wellnhofer authored
    On 64-bit Windows, `long` is 32 bits wide and can't hold a pointer.
    Switch to ptrdiff_t instead which should be the same size as a pointer
    on every somewhat sane platform without requiring C99 types like
    intptr_t.
    
    Fixes bug 788312.
    
    Thanks to J. Peter Mugaas for the report and initial patch.
    d422b954
xmlIO.c 104 KB