From: Paul Eggert Date: Fri, 11 Mar 2011 07:59:36 +0000 (-0800) Subject: * image.c (x_edge_detection): Remove unnecessary cast that X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~601 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=77a765fd789f80afbe170bf640794a4b25968ea6;p=emacs.git * image.c (x_edge_detection): Remove unnecessary cast that gcc -Wbad-function-cast diagnoses. --- diff --git a/src/ChangeLog b/src/ChangeLog index 158c5ff5330..cb535bad8a4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,8 @@ * image.c (clear_image_cache): Now static. (DIM, HAVE_STDLIB_H_1): Remove unused macros. (xpm_load): Redo to avoid "discards qualifiers" gcc warning. + (x_edge_detection): Remove unnecessary cast that + gcc -Wbad-function-cast diagnoses. 2011-03-11 Paul Eggert diff --git a/src/image.c b/src/image.c index 4befadd44ef..810bd4be989 100644 --- a/src/image.c +++ b/src/image.c @@ -4687,7 +4687,7 @@ x_edge_detection (struct frame *f, struct image *img, Lisp_Object matrix, color_adjust = make_number (0xffff / 2); if (i == 9 && NUMBERP (color_adjust)) - x_detect_edges (f, img, trans, (int) XFLOATINT (color_adjust)); + x_detect_edges (f, img, trans, XFLOATINT (color_adjust)); }