aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/composite.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eea8345b4f4..dbff8e35492 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12012-04-09 Paul Eggert <eggert@cs.ucla.edu>
2
3 composite.c: use 'double' consistently
4 * composite.c (get_composition_id): Use 'double' consistently
5 instead of converting 'float' to 'double' and vice versa; this is
6 easier to understand and avoids a GCC warning.
7
12012-04-09 Glenn Morris <rgm@gnu.org> 82012-04-09 Glenn Morris <rgm@gnu.org>
2 9
3 * Makefile.in: Generate leim-list with bootstrap-emacs, in 10 * Makefile.in: Generate leim-list with bootstrap-emacs, in
diff --git a/src/composite.c b/src/composite.c
index c44c8e565d0..abf71c275fa 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -355,7 +355,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
355 else 355 else
356 { 356 {
357 /* Rule-base composition. */ 357 /* Rule-base composition. */
358 float leftmost = 0.0, rightmost; 358 double leftmost = 0.0, rightmost;
359 359
360 ch = XINT (key_contents[0]); 360 ch = XINT (key_contents[0]);
361 rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1; 361 rightmost = ch != '\t' ? CHAR_WIDTH (ch) : 1;
@@ -364,7 +364,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
364 { 364 {
365 int rule, gref, nref; 365 int rule, gref, nref;
366 int this_width; 366 int this_width;
367 float this_left; 367 double this_left;
368 368
369 rule = XINT (key_contents[i]); 369 rule = XINT (key_contents[i]);
370 ch = XINT (key_contents[i + 1]); 370 ch = XINT (key_contents[i + 1]);