1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

Fix pointer signedness glitch

* src/font.c (font_load_for_lface): Use SSDATA, not SDATA.
This commit is contained in:
Paul Eggert 2015-06-30 09:06:21 -07:00
parent edd09381c6
commit 43593cb417

View file

@ -3346,7 +3346,7 @@ font_load_for_lface (struct frame *f, Lisp_Object *attrs, Lisp_Object spec)
name = Ffont_get (spec, QCuser_spec);
if (STRINGP (name))
{
char *p = SDATA (name), *q = strrchr (p, '-');
char *p = SSDATA (name), *q = strrchr (p, '-');
if (q != NULL && c_isdigit (q[1]))
{