34 lines
955 B
Plaintext
34 lines
955 B
Plaintext
$NetBSD: patch-ae,v 1.3 2013/04/24 02:20:36 rodent 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;
|
|
}
|