]> git.eshelyaron.com Git - emacs.git/commit
Use float not double in webp_load alpha conversion
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Aug 2023 01:43:57 +0000 (18:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Aug 2023 01:45:43 +0000 (18:45 -0700)
commit8bc21ef1109bb0a82485920ac067bbc06d377f86
tree543b0e77e07bfc32da0f56f545890b9c93d37204
parent4a6b32f72fff698fcef9cd583d0561f02687b9f2
Use float not double in webp_load alpha conversion

* src/image.c (webp_load): Pacify gcc -Wdouble-promotion
by using (1 - a), where the 1 is converted to 1.0f, rather
than (1.0 - a), which mistakenly converts a to double.
Also, reindent to use GNU style.
src/image.c