summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index ebea1783..f41a4292 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -867,7 +867,7 @@ parse_size (const char *word,
char *end;
double size = g_ascii_strtod (word, &end);
- if (end - word == wordlen) /* word is a valid float */
+ if ((size_t)(end - word) == wordlen) /* word is a valid float */
{
if (pango_size)
*pango_size = (int)(size * PANGO_SCALE + 0.5);