Skip to content

Commit

Permalink
cmd/gc: fix warning on Plan 9
Browse files Browse the repository at this point in the history
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 <[email protected]>
0intro committed Dec 18, 2014
1 parent fc71d7b commit 1ba13a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cmd/gc/bits.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 1ba13a5

Please sign in to comment.