summaryrefslogtreecommitdiff
path: root/editors/abiword/patches/patch-ag
blob: 9b47ad7da61bd6626b322601189ad868093f0d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ag,v 1.7 2002/07/03 21:59:10 hubertf Exp $

--- src/other/spell/xp/lookup.c.orig	Mon Aug 27 21:06:30 2001
+++ src/other/spell/xp/lookup.c
@@ -314,22 +314,22 @@
 	    if (dp->word == (char *) -1)
 		dp->word = NULL;
 	    else
-		dp->word = &DEREF(istate, hashstrings [ (int)(dp->word) ]);
+		dp->word = &DEREF(istate, hashstrings [ (PTRSIZE)(dp->word) ]);
 	    if (dp->next == (struct dent *) -1)
 		dp->next = NULL;
 	    else
-		dp->next = &DEREF(istate, hashtbl [ (int)(dp->next) ]);
+		dp->next = &DEREF(istate, hashtbl [ (PTRSIZE)(dp->next) ]);
 	    }
 	}
 
     for (i = DEREF(istate, numsflags) + DEREF(istate, numpflags), entry = DEREF(istate, sflaglist); --i >= 0; entry++)
 	{
 	if (entry->stripl)
-	    entry->strip = (ichar_t *) &DEREF(istate, hashstrings[(int) entry->strip]);
+	    entry->strip = (ichar_t *) &DEREF(istate, hashstrings[(PTRSIZE) entry->strip]);
 	else
 	    entry->strip = NULL;
 	if (entry->affl)
-	    entry->affix = (ichar_t *) &DEREF(istate, hashstrings[(int) entry->affix]);
+	    entry->affix = (ichar_t *) &DEREF(istate, hashstrings[(PTRSIZE) entry->affix]);
 	else
 	    entry->affix = NULL;
 	}