mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
wadfs: avoid comma operator after PBIT32() macros
This commit is contained in:
parent
fe1f6c1b3d
commit
5a934b56f5
1 changed files with 6 additions and 3 deletions
|
@ -459,7 +459,8 @@ makewad(void)
|
|||
p = l->buf;
|
||||
lp = fsig->aux;
|
||||
memcpy(p, lp->buf, 4), p += 4;
|
||||
PBIT32(p, nlmp), p += 8;
|
||||
PBIT32(p, nlmp);
|
||||
p += 8;
|
||||
for(lp=lumps->l; lp!=lumps; p+=n, lp=lp->l){
|
||||
n = lp->f->length;
|
||||
if(lp->buf != nil)
|
||||
|
@ -471,8 +472,10 @@ makewad(void)
|
|||
ofs = Nhdr;
|
||||
for(lp=lumps->l; lp!=lumps; ofs+=n, lp=lp->l){
|
||||
n = lp->f->length;
|
||||
PBIT32(p, ofs), p += 4;
|
||||
PBIT32(p, n), p += 4;
|
||||
PBIT32(p, ofs);
|
||||
p += 4;
|
||||
PBIT32(p, n);
|
||||
p += 4;
|
||||
memcpy(p, lp->name, 8), p += 8;
|
||||
}
|
||||
dirty = 0;
|
||||
|
|
Loading…
Reference in a new issue