1
0
mirror of https://github.com/golang/go synced 2024-11-24 20:40:23 -07:00

5g: correct size of reg array.

Found by gcc 4.5.2 -Werror build reported on IRC by niemeyer.

R=ken2, rsc, r2
CC=golang-dev
https://golang.org/cl/4438042
This commit is contained in:
Ian Lance Taylor 2011-04-15 13:09:57 -07:00
parent 4787e70b7b
commit 4c137b6162

View File

@ -52,7 +52,7 @@ struct Prog
EXTERN Biobuf* bout;
EXTERN int32 dynloc;
EXTERN uchar reg[REGALLOC_FMAX];
EXTERN uchar reg[REGALLOC_FMAX+1];
EXTERN int32 pcloc; // instruction counter
EXTERN Strlit emptystring;
extern char* anames[];