* xdisp.c (reseat_to_string): Fix pointer signedness issue.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jul 2011 21:34:18 +0000 (14:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Jul 2011 21:34:18 +0000 (14:34 -0700)
src/ChangeLog
src/xdisp.c

index 50a2d82..960ab3d 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xdisp.c (reseat_to_string): Fix pointer signedness issue.
+
 2011-07-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * data.c (Fcdr, Fcar): Revert the last change, since it didn't
index f8b4e65..69a66a4 100644 (file)
@@ -5890,7 +5890,7 @@ reseat_to_string (struct it *it, const char *s, Lisp_Object string,
       if (it->bidi_p)
        {
          it->bidi_it.string.lstring = Qnil;
-         it->bidi_it.string.s = s;
+         it->bidi_it.string.s = (const unsigned char *) s;
          it->bidi_it.string.schars = it->end_charpos;
          it->bidi_it.string.bufpos = 0;
          it->bidi_it.string.from_disp_str = 0;