blob: 52ca23dacca5b27031395d4cefb8cf2be3514e09 (
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
32
33
|
$NetBSD: patch-ae,v 1.3 2005/07/07 12:42:20 markd Exp $
--- lookup.c.orig 2005-04-15 09:25:52.000000000 +1200
+++ lookup.c
@@ -247,11 +247,11 @@ int linit ()
if (dp->word == (unsigned char *) -1)
dp->word = NULL;
else
- dp->word = &hashstrings[(unsigned long) dp->word];
+ dp->word = &hashstrings[(PTRSIZE) dp->word];
if (dp->next == (struct dent *) -1)
dp->next = NULL;
else
- dp->next = &hashtbl[(unsigned long) dp->next];
+ dp->next = &hashtbl[(PTRSIZE) dp->next];
}
}
@@ -259,12 +259,12 @@ int linit ()
{
if (entry->stripl)
entry->strip =
- (ichar_t *) &hashstrings[(unsigned long) entry->strip];
+ (ichar_t *) &hashstrings[(PTRSIZE) entry->strip];
else
entry->strip = NULL;
if (entry->affl)
entry->affix =
- (ichar_t *) &hashstrings[(unsigned long) entry->affix];
+ (ichar_t *) &hashstrings[(PTRSIZE) entry->affix];
else
entry->affix = NULL;
}
|