Revision 578c7b2c

b/audio/mixeng_template.h
46 46
#endif
47 47
#else  /* !RECIPROCAL */
48 48
#ifdef SIGNED
49
    return nv / (mixeng_real) (IN_MAX - IN_MIN);
49
    return nv / (mixeng_real) ((mixeng_real) IN_MAX - IN_MIN);
50 50
#else
51 51
    return (nv - HALF) / (mixeng_real) IN_MAX;
52 52
#endif
......
63 63
    }
64 64

  
65 65
#ifdef SIGNED
66
    return ENDIAN_CONVERT ((IN_T) (v * (IN_MAX - IN_MIN)));
66
    return ENDIAN_CONVERT ((IN_T) (v * ((mixeng_real) IN_MAX - IN_MIN)));
67 67
#else
68 68
    return ENDIAN_CONVERT ((IN_T) ((v * IN_MAX) + HALF));
69 69
#endif

Also available in: Unified diff