• 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
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
evr.c Loading commit data...
evr.spec Loading commit data...
evr_classes.idl Loading commit data...
evr_private.h Loading commit data...
main.c Loading commit data...
mixer.c Loading commit data...
presenter.c Loading commit data...
sample.c Loading commit data...