1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:04:39 -07:00

cmd/gc: fix warning on Plan 9

warning: src/cmd/gc/bits.c:101 non-interruptable temporary

Change-Id: I74661fefab50455b912b8085d913fc45ba13c5c8
Reviewed-on: https://go-review.googlesource.com/1780
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
David du Colombier 2014-12-18 07:52:21 +01:00
parent fc71d7b8ca
commit 1ba13a5ae8

View File

@ -97,9 +97,11 @@ bnum(Bits a)
int i;
uint64 b;
for(i=0; i<BITS; i++)
if(b = a.b[i])
for(i=0; i<BITS; i++){
b = a.b[i];
if(b)
return 64*i + bitno(b);
}
fatal("bad in bnum");
return 0;
}