changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: wadfs: avoid comma operator after PBIT32() macros

changeset 7216: 249468ce1239
parent 7215: e4dad4f80c6c
child 7217: 871931727b28
author: cinap_lenrek@felloff.net
date: Tue, 07 May 2019 21:49:49 +0200
files: sys/src/games/wadfs.c
description: wadfs: avoid comma operator after PBIT32() macros
     1.1--- a/sys/src/games/wadfs.c
     1.2+++ b/sys/src/games/wadfs.c
     1.3@@ -459,7 +459,8 @@ makewad(void)
     1.4 	p = l->buf;
     1.5 	lp = fsig->aux;
     1.6 	memcpy(p, lp->buf, 4), p += 4;
     1.7-	PBIT32(p, nlmp), p += 8;
     1.8+	PBIT32(p, nlmp);
     1.9+	p += 8;
    1.10 	for(lp=lumps->l; lp!=lumps; p+=n, lp=lp->l){
    1.11 		n = lp->f->length;
    1.12 		if(lp->buf != nil)
    1.13@@ -471,8 +472,10 @@ makewad(void)
    1.14 	ofs = Nhdr;
    1.15 	for(lp=lumps->l; lp!=lumps; ofs+=n, lp=lp->l){
    1.16 		n = lp->f->length;
    1.17-		PBIT32(p, ofs), p += 4;
    1.18-		PBIT32(p, n), p += 4;
    1.19+		PBIT32(p, ofs);
    1.20+		p += 4;
    1.21+		PBIT32(p, n);
    1.22+		p += 4;
    1.23 		memcpy(p, lp->name, 8), p += 8;
    1.24 	}
    1.25 	dirty = 0;