From 5a934b56f59f2cc0c7a700618a3f8211541c1bcd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 7 May 2019 21:49:49 +0200 Subject: wadfs: avoid comma operator after PBIT32() macros --- sys/src/games/wadfs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/src') 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; -- cgit v1.2.3