SHA256
1
0
forked from pool/bb
Files
bb/undefined-operation.diff
Takashi Iwai 7ccc36dbd2 - Build with -fpermissive to work around various C99 violations which
lead to compiler errors with GCC 14 by default [boo#1228121]

If the request is OK, please forward it to Factory soon-ish so that it
is ready for switching the default compiler.  Thanks.

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/bb?expand=0&rev=19
2024-07-18 18:14:51 +00:00

12 lines
374 B
Diff

--- zoom.c.orig
+++ zoom.c
@@ -199,7 +199,7 @@ struct dyn_data {
#define adddata(n,i) ((((n)<<DSIZES)+(((i)&(DSIZEHMASK)))))
#define getbest(i) (((size)<<DSIZES)+(i))
-#define PRICE(i,i1) ((((ftmp=((i)-(i1)))*ftmp)*(rangedelta)))
+#define PRICE(i,i1) (((ftmp=((i)-(i1)),ftmp*ftmp)*(rangedelta)))
#define NEWPRICE (FPMUL)
#define NOSETMASK ((unsigned int)0x80000000)