From 939c679e0a597d7fcb0704e37cfa59c4dbb5d913 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Wed, 17 Sep 2008 19:16:09 +0000 Subject: [PATCH] (composition_adjust_point): Fix int/EMACS_INT mixup. --- src/ChangeLog | 4 ++++ src/composite.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4b4e4cfe089..1e9f491a655 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-09-17 Romain Francoise + + * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup. + 2008-09-17 Kenichi Handa * ftfont.c (ftfont_shape_by_flt): Downcase family name. diff --git a/src/composite.c b/src/composite.c index 576e0c8a402..95f700c7116 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1429,7 +1429,7 @@ composition_adjust_point (last_pt) return PT; /* Next check the automatic composition. */ - if (! find_automatic_composition (PT, -1, &beg, &end, &val, Qnil) + if (! find_automatic_composition (PT, (EMACS_INT) -1, &beg, &end, &val, Qnil) || beg == PT) return PT; for (i = 0; i < LGSTRING_GLYPH_LEN (val); i++) -- 2.39.5