mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
libregexp: more placating of gcc (John Gosset)
This commit is contained in:
parent
66f6e2b651
commit
002d2f2610
1 changed files with 5 additions and 5 deletions
|
@ -261,18 +261,18 @@ optimize(Reprog *pp)
|
||||||
case STAR:
|
case STAR:
|
||||||
case PLUS:
|
case PLUS:
|
||||||
case QUEST:
|
case QUEST:
|
||||||
*(char**)(void*)&inst->u1.right += diff;
|
inst->u1.right = (void*)((char*)inst->u1.right + diff);
|
||||||
break;
|
break;
|
||||||
case CCLASS:
|
case CCLASS:
|
||||||
case NCCLASS:
|
case NCCLASS:
|
||||||
*(char**)(void*)&inst->u1.right += diff;
|
inst->u1.right = (void*)((char*)inst->u1.right + diff);
|
||||||
cl = inst->u1.cp;
|
cl = inst->u1.cp;
|
||||||
*(char**)(void*)&cl->end += diff;
|
cl->end = (void*)((char*)cl->end + diff);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
*(char**)(void*)&inst->u2.left += diff;
|
inst->u2.left = (void*)((char*)inst->u2.left + diff);
|
||||||
}
|
}
|
||||||
*(char**)(void*)&npp->startinst += diff;
|
npp->startinst = (void*)((char*)npp->startinst + diff);
|
||||||
return npp;
|
return npp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue