summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-05-07 21:49:49 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-05-07 21:49:49 +0200
commit5a934b56f59f2cc0c7a700618a3f8211541c1bcd (patch)
tree691c4b6d5ee02daa6293a441d599105ae75ec105
parentfe1f6c1b3d571ba6ea4726e175f62689901719a4 (diff)
wadfs: avoid comma operator after PBIT32() macros
-rw-r--r--sys/src/games/wadfs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/src/games/wadfs.c b/sys/src/games/wadfs.c
index 56a618407..46cc8fcf1 100644
--- a/sys/src/games/wadfs.c
+++ b/sys/src/games/wadfs.c
@@ -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;