]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a compilation warning in xdisp.c
authorEli Zaretskii <eliz@gnu.org>
Sun, 23 Aug 2020 18:52:06 +0000 (21:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 23 Aug 2020 18:52:06 +0000 (21:52 +0300)
* src/xdisp.c (gui_consider_frame_title): Fix compilation warning.
Reported by Lars Ingebrigtsen <larsi@gnus.org>.

src/xdisp.c

index 9d2bec379dc67d22cada1f7214b66ccb7868971a..a6706b00c3c954cf82967fbd1a3c611dcdb0bbb9 100644 (file)
@@ -12568,8 +12568,8 @@ gui_consider_frame_title (Lisp_Object frame)
       /* Make sure that any raw bytes in the title are properly
          represented by their multibyte sequences.  */
       ptrdiff_t nchars = 0;
-      len = str_as_multibyte (title, mode_line_noprop_buf_end - title,
-                              len, &nchars);
+      len = str_as_multibyte ((unsigned char *)title,
+                             mode_line_noprop_buf_end - title, len, &nchars);
       unbind_to (count, Qnil);
 
       /* Set the title only if it's changed.  This avoids consing in