summaryrefslogtreecommitdiff
path: root/pango/pango-markup.c
diff options
context:
space:
mode:
authorJehan <jehan@girinstud.io>2013-09-04 13:04:47 +1200
committerJehan <jehan@girinstud.io>2013-09-04 13:04:47 +1200
commit285be5bd7ee3ce87bb027b405be674d6f91995d1 (patch)
tree1c40157f303aa78c26b2a84bc136a25551db4664 /pango/pango-markup.c
parent009ef189885fc8aca305372ead467fa05afe3747 (diff)
downloadpango-285be5bd7ee3ce87bb027b405be674d6f91995d1.tar.gz
Bug 707131 - removing useless test.
Since pango_scan_int() would return FALSE if the scanned value was over INT_MAX; and the reference out value's type is an int, (n > INT_MAX) test is unecessary. If pango_scan_int() behavior was to be changed to accept long int, an explicit test should be added (or the PangoAttrSize type updated to handle long int too).
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r--pango/pango-markup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 2b2c3047..c96c29e9 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1190,7 +1190,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
const char *end;
gint n;
- if ((end = size, !pango_scan_int (&end, &n)) || *end != '\0' || n < 0 || n > INT_MAX)
+ if ((end = size, !pango_scan_int (&end, &n)) || *end != '\0' || n < 0)
{
g_set_error (error,
G_MARKUP_ERROR,