ref: 5a934b56f59f2cc0c7a700618a3f8211541c1bcd
parent: fe1f6c1b3d571ba6ea4726e175f62689901719a4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue May 7 17:49:49 EDT 2019
wadfs: avoid comma operator after PBIT32() macros
--- a/sys/src/games/wadfs.c
+++ b/sys/src/games/wadfs.c
@@ -459,7 +459,8 @@
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 @@
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;