You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get the following warning when building with GCC 12.2.1 for float
[ 40%] Building C object tools/CMakeFiles/psdpng.dir/psdpng.c.o
/home/kissfft/kissfft-131.1.0/tools/psdpng.c: In function ‘val2rgb’:
/home/kissfft/kissfft-131.1.0/tools/psdpng.c:87:22: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘double’ [-Wabsolute-value]
87 | p->r = (int)(255*abs(sin(x*pi*3/2)));
| ^~~
/home/kissfft/kissfft-131.1.0/tools/psdpng.c:88:22: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘double’ [-Wabsolute-value]
88 | p->b = (int)(255*abs(sin(x*pi*5/2)));
| ^~~
when building double get
[ 40%] Building C object tools/CMakeFiles/psdpng.dir/psdpng.c.o
/home/kissfft/kissfft-131.1.0/tools/psdpng.c: In function ‘val2rgb’:
/home/kissfft/kissfft-131.1.0/tools/psdpng.c:87:22: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘double’ [-Wabsolute-value]
87 | p->r = (int)(255*abs(sin(x*pi*3/2)));
| ^~~
/home/kissfft/kissfft-131.1.0/tools/psdpng.c:88:22: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘double’ [-Wabsolute-value]
88 | p->b = (int)(255*abs(sin(x*pi*5/2)));
| ^~~
The text was updated successfully, but these errors were encountered:
Get the following warning when building with GCC 12.2.1 for float
when building double get
The text was updated successfully, but these errors were encountered: