From f3e6dd1ce97bb279565465dc1ecce1516f42683e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 23 Aug 2020 21:52:06 +0300 Subject: [PATCH] Fix a compilation warning in xdisp.c * src/xdisp.c (gui_consider_frame_title): Fix compilation warning. Reported by Lars Ingebrigtsen . --- src/xdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 9d2bec379dc..a6706b00c3c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.2