summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-09-24 07:14:13 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-09-24 07:14:13 +0000
commit4ac1cdbee605e38869153cdfc577c4234d127bb7 (patch)
treec9b49cb77406c63bd5a4eb0bd5dcdf46d2701cfa /Build/source/texk/dvipdfm-x
parentec3cfe019e8cff724e6cd92f894fac69843821f0 (diff)
dvipdfmx.c: Cast as kpathsea_debug = (uint32_t)atoi(optarg). Since kpathsea_debug is unsigned int, the cast must be redundant. However a debian person says that he has a negative value for --kpathsea-debug -1, strangely.
git-svn-id: svn://tug.org/texlive/trunk@38453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog9
-rw-r--r--Build/source/texk/dvipdfm-x/dvipdfmx.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 3e5d48d5bf3..dfc9829077f 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,12 @@
+2015-09-24 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * dvipdfmx.c: Cast as kpathsea_debug = (uint32_t)atoi(optarg).
+ Since kpathsea_debug is unsigned int, the cast must be redundant.
+ However, a debian person says that he has:
+ $ dvipdfmx --kpathsea-debug -1 test.dvi
+ dvipdfmx:fatal: Invalid kpathsearch debugging flags specified: -1
+ I cannot reproduce the behavior, but I add the redundant cast.
+
2015-08-25 Peter Breitenlohner <peb@mppmu.mpg.de>
* Most .c and .h files: Update Copyright years.
diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx.c b/Build/source/texk/dvipdfm-x/dvipdfmx.c
index 19b0ea3cf3f..b4ae449cc3e 100644
--- a/Build/source/texk/dvipdfm-x/dvipdfmx.c
+++ b/Build/source/texk/dvipdfm-x/dvipdfmx.c
@@ -461,7 +461,7 @@ do_args (int argc, char *argv[], const char *source)
break;
case 133: /* --kpathsea-debug */
- if ((kpathsea_debug = atoi(optarg)) < 0)
+ if ((kpathsea_debug = (uint32_t)atoi(optarg)) < 0)
ERROR("Invalid kpathsearch debugging flags specified: %s", optarg);
break;