forked from pool/ispell
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
|
--- parse.y
|
||
|
+++ parse.y 2007-05-31 18:23:51.044846032 +0200
|
||
|
@@ -1940,8 +1940,10 @@ static int addstringchar (str, lower, up
|
||
|
*/
|
||
|
for (mslot = hashheader.nstrchars + SET_SIZE; --mslot >= slot; )
|
||
|
{
|
||
|
+ int ia64_1 = mslot + 1 - SET_SIZE;
|
||
|
+
|
||
|
(void) strcpy (
|
||
|
- (char *) &hashheader.stringchars[mslot + 1 - SET_SIZE][0],
|
||
|
+ (char *) &hashheader.stringchars[ia64_1][0],
|
||
|
(char *) &hashheader.stringchars[mslot - SET_SIZE][0]);
|
||
|
hashheader.lowerchars[mslot + 1] = hashheader.lowerchars[mslot];
|
||
|
hashheader.upperchars[mslot + 1] = hashheader.upperchars[mslot];
|
||
|
@@ -1954,10 +1956,8 @@ static int addstringchar (str, lower, up
|
||
|
hashheader.lowerconv[mslot + 1] = hashheader.lowerconv[mslot];
|
||
|
hashheader.upperconv[mslot + 1] = hashheader.upperconv[mslot];
|
||
|
hashheader.sortorder[mslot + 1] = hashheader.sortorder[mslot];
|
||
|
- hashheader.stringdups[mslot + 1 - SET_SIZE] =
|
||
|
- hashheader.stringdups[mslot - SET_SIZE];
|
||
|
- hashheader.groupnos[mslot + 1 - SET_SIZE] =
|
||
|
- hashheader.groupnos[mslot - SET_SIZE];
|
||
|
+ hashheader.stringdups[ia64_1] = hashheader.stringdups[mslot - SET_SIZE];
|
||
|
+ hashheader.groupnos[ia64_1] = hashheader.groupnos[mslot - SET_SIZE];
|
||
|
}
|
||
|
/*
|
||
|
* Insert the new string character into the slot we made. The
|