Fixing a compiler warning, fdi2raw.c (Linux)

Discussion of development and patch submission.
Post Reply
User avatar
Posts: 13
Joined: Thu 03 May, 2018 6:36 pm
Location: Germany

Fixing a compiler warning, fdi2raw.c (Linux)

Post by Tux » Fri 04 May, 2018 7:32 pm

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.
(1.45 KiB) Downloaded 68 times

Post Reply