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.5 2001/08/10 04:50:09 jlam Exp $
--- src/other/spell/xp/lookup.c.orig Wed Jul 18 13:46:01 2001
+++ src/other/spell/xp/lookup.c
@@ -301,22 +301,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;
}
|