diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-08-09 16:21:36 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-08-09 16:21:36 +0800 |
commit | 67a02a8fd7f6a7e2a8d68a48b71535a654518de9 (patch) | |
tree | 2f9e6599e5929488024bace59462c6d244040b7d /pango | |
parent | c4d138179443b49d817830c78ddcd1459cf5505f (diff) | |
download | pango-67a02a8fd7f6a7e2a8d68a48b71535a654518de9.tar.gz |
pango-markup.c: Fix build
The strchr() call's second parameter is a char, not a string.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-markup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c index 00b16943..91def193 100644 --- a/pango/pango-markup.c +++ b/pango/pango-markup.c @@ -1671,7 +1671,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED, if (!span_parse_float ("line_height", line_height, &f, line_number, error)) goto error; - if (f > 1024.0 && strchr (line_height, ".") == 0) + if (f > 1024.0 && strchr (line_height, '.') == 0) add_attribute (tag, pango_attr_line_height_new_absolute ((int)f)); else add_attribute (tag, pango_attr_line_height_new (f)); |