texlive[44851] Build/source/texk/makejvf: makejvf: unsigned -> signed

commits+hironobu at tug.org commits+hironobu at tug.org
Thu Jul 20 16:15:34 CEST 2017


Revision: 44851
          http://tug.org/svn/texlive?view=revision&revision=44851
Author:   hironobu
Date:     2017-07-20 16:15:34 +0200 (Thu, 20 Jul 2017)
Log Message:
-----------
makejvf: unsigned -> signed to avoid abs() warning

Modified Paths:
--------------
    trunk/Build/source/texk/makejvf/ChangeLog
    trunk/Build/source/texk/makejvf/makejvf.h
    trunk/Build/source/texk/makejvf/tfmread.c

Modified: trunk/Build/source/texk/makejvf/ChangeLog
===================================================================
--- trunk/Build/source/texk/makejvf/ChangeLog	2017-07-20 13:18:57 UTC (rev 44850)
+++ trunk/Build/source/texk/makejvf/ChangeLog	2017-07-20 14:15:34 UTC (rev 44851)
@@ -1,6 +1,8 @@
 2017-07-20  Hironobu Yamashita  <h.y.acetaminophen at gmail.com>
 
 	makejvf version 20170720.
+	* tfmread.c, makejvf.h: Declare "rightamount" as signed,
+	to be consistent with "skip" in write.c.
 	* write.c: Improve -m option for UCS mode.
 	* version.h: Adjusted.
 	* makejvf.1: Add documentation of -m option.

Modified: trunk/Build/source/texk/makejvf/makejvf.h
===================================================================
--- trunk/Build/source/texk/makejvf/makejvf.h	2017-07-20 13:18:57 UTC (rev 44850)
+++ trunk/Build/source/texk/makejvf/makejvf.h	2017-07-20 14:15:34 UTC (rev 44851)
@@ -1,8 +1,7 @@
 
 #define MAX_LIG_STEPS 32510
 extern char *vtfmname,*kanatfm,*jistfm,*ucsqtfm;
-extern int unit,zh,zw,jfm_id;
-extern unsigned int rightamount;
+extern int unit,zh,zw,jfm_id,rightamount;
 extern int kanatume,chotai,baseshift,minute,hankana,fidzero,enhanced;
 extern int pstfm_nt;
 extern FILE *afp;

Modified: trunk/Build/source/texk/makejvf/tfmread.c
===================================================================
--- trunk/Build/source/texk/makejvf/tfmread.c	2017-07-20 13:18:57 UTC (rev 44850)
+++ trunk/Build/source/texk/makejvf/tfmread.c	2017-07-20 14:15:34 UTC (rev 44851)
@@ -5,15 +5,13 @@
 #include <stdlib.h>
 #include <string.h>
 
-int nt,unit,zh,zw,jfm_id;
+int nt,unit,zh,zw,jfm_id,rightamount;
 int *width,*height,*depth,*italic,*param;
-unsigned int rightamount;
 unsigned char *header,*char_type,*char_info,*glue_kern,*kern,*glue;
 
 int jfmread(int kcode)
 {
-	int i,ctype = 0,w_ind,w,gk_ind,k_ind,g_ind;
-	unsigned int ll,rr;
+	int i,ctype = 0,w_ind,w,ll,rr,gk_ind,k_ind,g_ind;
 
 	for (i = 0 ; i < nt ; i++) {
 		if (upair(&char_type[i*4]) == kcode) {



More information about the tex-live-commits mailing list