]> git.eshelyaron.com Git - emacs.git/commitdiff
composite.c: use 'double' consistently
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Apr 2012 06:52:40 +0000 (23:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Apr 2012 06:52:40 +0000 (23:52 -0700)
* composite.c (get_composition_id): Use 'double' consistently
instead of converting 'float' to 'double' and vice versa; this is
easier to understand and avoids a GCC warning.

src/ChangeLog
src/composite.c

index eea8345b4f413bb7102d24cf3cc1fcc53fde67c5..dbff8e354923bd81132a10d023a47708aa0fdcdd 100644 (file)
@@ -1,3 +1,10 @@
+2012-04-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       composite.c: use 'double' consistently
+       * composite.c (get_composition_id): Use 'double' consistently
+       instead of converting 'float' to 'double' and vice versa; this is
+       easier to understand and avoids a GCC warning.
+
 2012-04-09  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in: Generate leim-list with bootstrap-emacs, in
index c44c8e565d00ddcf27137745d721197340d1a7dc..abf71c275fa42075ecf49994dd5a3c65752e1971 100644 (file)
@@ -355,7 +355,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
   else
     {
       /* Rule-base composition.  */
-      float leftmost = 0.0, rightmost;
+      double leftmost = 0.0, rightmost;
 
       ch = XINT (key_contents[0]);
       rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
@@ -364,7 +364,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
        {
          int rule, gref, nref;
          int this_width;
-         float this_left;
+         double this_left;
 
          rule = XINT (key_contents[i]);
          ch = XINT (key_contents[i + 1]);