diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-07 21:28:08 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-07 21:28:08 +0000 |
commit | 275f43d792961c3e02cbf06b46eb3f99d105ec6f (patch) | |
tree | f31f639d2a79199a7c956aff0f2b267dae9d20ea /Build/source/texk/dvipdfm-x/tt_aux.c | |
parent | 151be1c527f048ec037f1ccd83e08857bb9726cd (diff) |
Use uint32_t for TTC index. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@56064 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_aux.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_aux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_aux.c b/Build/source/texk/dvipdfm-x/tt_aux.c index 06b9c0b4a21..2d4b352cff7 100644 --- a/Build/source/texk/dvipdfm-x/tt_aux.c +++ b/Build/source/texk/dvipdfm-x/tt_aux.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2018 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. This program is free software; you can redistribute it and/or modify @@ -35,7 +35,7 @@ #include "tt_post.h" #include "tt_aux.h" -ULONG ttc_read_offset (sfnt *sfont, int ttc_idx) +ULONG ttc_read_offset (sfnt *sfont, ULONG ttc_idx) { ULONG offset = 0, num_dirs = 0; @@ -49,7 +49,7 @@ ULONG ttc_read_offset (sfnt *sfont, int ttc_idx) /* version = */ sfnt_get_ulong(sfont); num_dirs = sfnt_get_ulong(sfont); - if (ttc_idx < 0 || ttc_idx > num_dirs - 1) + if (ttc_idx > num_dirs - 1) ERROR("Invalid TTC index number"); sfnt_seek_set (sfont, 12 + ttc_idx * 4); |