diff options
author | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-04 19:39:35 +0000 |
---|---|---|
committer | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-04 19:39:35 +0000 |
commit | d0920a314908a614613e83ab01e3c31038022b8d (patch) | |
tree | 3f71d9a91d95fad41733c821c7f413d0ad35ca43 /Build/source | |
parent | 846c22ca75fdcb4f76a5ce5fe33173c8c93cb2e4 (diff) |
Fix warnings when comparing size_t with negative value
git-svn-id: svn://tug.org/texlive/trunk@34835 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 3 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/cmap_read.c | 14 |
2 files changed, 10 insertions, 7 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 0fa07b55a42..c9f10b7adc5 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -11,6 +11,9 @@ we only do glyph name lookup for CFF fonts when they are not CID fonts. + * cmap_read.c: Fix warnings when comparing size_t with negative + value (< 0). + 2014-08-03 Jiang Jiang <gzjjgod@gmail.com> * tt_cmap.c (sfnt_get_glyphname, handle_subst_glyphs): Fix error on diff --git a/Build/source/texk/dvipdfm-x/cmap_read.c b/Build/source/texk/dvipdfm-x/cmap_read.c index f6c8d4c36c5..abf13c2f3f3 100644 --- a/Build/source/texk/dvipdfm-x/cmap_read.c +++ b/Build/source/texk/dvipdfm-x/cmap_read.c @@ -144,7 +144,7 @@ check_next_token (ifreader *input, const char *key) pst_obj *token; char *str; - if (ifreader_need(input, strlen(key)) < 0) + if (ifreader_need(input, strlen(key)) == 0) return -1; if ((token = pst_get_token(&(input->cursor), input->endptr)) == NULL) return -1; @@ -246,7 +246,7 @@ do_notdefrange (CMap *cmap, ifreader *input, int count) int dim; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*3) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*3) == 0) return -1; if (get_coderange(input, codeLo, codeHi, &dim, TOKEN_LEN_MAX) < 0 || (tok = pst_get_token(&(input->cursor), input->endptr)) == NULL) @@ -271,7 +271,7 @@ do_bfrange (CMap *cmap, ifreader *input, int count) int srcdim; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*3) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*3) == 0) return -1; if (get_coderange(input, codeLo, codeHi, &srcdim, TOKEN_LEN_MAX) < 0 || (tok = pst_get_token(&(input->cursor), input->endptr)) == NULL) @@ -302,7 +302,7 @@ do_cidrange (CMap *cmap, ifreader *input, int count) int dim; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*3) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*3) == 0) return -1; if (get_coderange(input, codeLo, codeHi, &dim, TOKEN_LEN_MAX) < 0 || (tok = pst_get_token(&(input->cursor), input->endptr)) == NULL) @@ -326,7 +326,7 @@ do_notdefchar (CMap *cmap, ifreader *input, int count) long dstCID; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*2) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*2) == 0) return -1; if ((tok1 = pst_get_token(&(input->cursor), input->endptr)) == NULL) return -1; @@ -353,7 +353,7 @@ do_bfchar (CMap *cmap, ifreader *input, int count) pst_obj *tok1, *tok2; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*2) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*2) == 0) return -1; if ((tok1 = pst_get_token(&(input->cursor), input->endptr)) == NULL) return -1; @@ -384,7 +384,7 @@ do_cidchar (CMap *cmap, ifreader *input, int count) long dstCID; while (count-- > 0) { - if (ifreader_need(input, TOKEN_LEN_MAX*2) < 0) + if (ifreader_need(input, TOKEN_LEN_MAX*2) == 0) return -1; if ((tok1 = pst_get_token(&(input->cursor), input->endptr)) == NULL) return -1; |