Page 1 of 1

Fixing a compiler warning, fdi2raw.c (Linux)

Posted: Fri 04 May, 2018 7:32 pm
by Tux
Depending on your compiler (here: gcc with Linux) you might receive four similar warnings (compiling fdi2raw.c)

Code: Select all

fdi2raw.c:1631:25: warning: integer overflow in expression [-Woverflow]
        if (randval <= (3 * RAND_MAX / 8))
Attachment (patch against PCem v14) fixes the warnings.