diff options
Diffstat (limited to 'editors/abiword1/patches/patch-ag')
-rw-r--r-- | editors/abiword1/patches/patch-ag | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/editors/abiword1/patches/patch-ag b/editors/abiword1/patches/patch-ag new file mode 100644 index 00000000000..8874dcbfc61 --- /dev/null +++ b/editors/abiword1/patches/patch-ag @@ -0,0 +1,31 @@ +$NetBSD: patch-ag,v 1.1.1.1 2003/12/26 18:20:28 wiz 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; + } |