diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:36:35 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:36:35 +0000 |
commit | b10d39aec443165093f8f28bc6f940530b89cdaf (patch) | |
tree | 63a1ef3b3f1d2562c498291cda341a2171a1fe1c /z10.c | |
parent | 2f4268e5e02216be53cd85816362191373512463 (diff) | |
download | lout-b10d39aec443165093f8f28bc6f940530b89cdaf.tar.gz |
Lout 3.21.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@11 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z10.c')
-rw-r--r-- | z10.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ /*@z10.c:Cross References:CrossInit(), CrossMake()@***************************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.20) */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.21) */ /* COPYRIGHT (C) 1991, 2000 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@cs.usyd.edu.au) */ @@ -66,7 +66,7 @@ typedef struct #define crtab_chain(S,i) (S)->tab_chains[i] #define hash(pos, sym, fnum, S) \ -{ pos = ( ((long) sym) + fnum ) % crtab_size(S); \ +{ pos = ( ((unsigned long) sym) + fnum ) % crtab_size(S); \ } static CROSSREF_TABLE crtab_new(int newsize) @@ -85,7 +85,7 @@ static CROSSREF_TABLE crtab_new(int newsize) } /* end crtab_new */ static CROSSREF_TABLE crtab_rehash(CROSSREF_TABLE S, int newsize) -{ CROSSREF_TABLE NewS; int i; long newpos; CROSSREF_ENTRY p, q; +{ CROSSREF_TABLE NewS; int i; unsigned long newpos; CROSSREF_ENTRY p, q; NewS = crtab_new(newsize); for( i = 0; i < crtab_size(S); i++ ) { p = crtab_chain(S, i); @@ -105,7 +105,7 @@ static CROSSREF_TABLE crtab_rehash(CROSSREF_TABLE S, int newsize) } /* end crtab_rehash */ static int crtab_getnext(OBJECT sym, FILE_NUM fnum, CROSSREF_TABLE *S) -{ CROSSREF_ENTRY x; OBJECT t; long pos; +{ CROSSREF_ENTRY x; OBJECT t; unsigned long pos; /* if S is NULL, create a new table */ if( *S == NULL ) *S = crtab_new(INIT_CROSSREF_NUM); |