]> git.eshelyaron.com Git - emacs.git/commit
Pacify gcc and other image rotation tweaks
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 29 Jun 2019 23:46:16 +0000 (16:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 29 Jun 2019 23:49:19 +0000 (16:49 -0700)
commitf5b2fd5e46505d68850fb8532357d4218f067c48
tree42ed471fc063a552e84a49a42d31e192b1d4fa21
parent0b2841f9fb0ffd8514b0fb99c5673adad6b07abb
Pacify gcc and other image rotation tweaks

* src/image.c: No need to include <float.h> as lisp.h does that.
(matrix3x3_copy): Remove; no longer needed.
(divide_double): New function, to avoid undefined behavior
when dividing by zero on non-IEEE hosts.
(image_set_transform): Simplify transformation computation
by avoiding the need to copy a matrix.  Pacify
gcc 9 -Wdouble-promotion and -Wmaybe-uninitialized.
Avoid unnecessary assignment of width and height.
Improve error reporting for unsupported native image rotation.
src/image.c