• Eric Pouech's avatar
    evr: Fix incorrect integral computation. · 0cc4a38a
    Eric Pouech authored
    Note: typeof (int * unsigned) is unsigned.
    So:
    - on 64bit CPUs, where sizeof(int) = 4 < sizeof(void*) = 8,
    - when the result of the multiplication is supposed to be negative
    - there's no propagation of the negative sign from 32bit to 64 bit integers
    
    Fixes a crash in Age of Empire II.
    Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
    0cc4a38a
evr.c 25.7 KB