1
0
mirror of https://github.com/golang/go synced 2024-10-04 05:31:21 -06:00
go/src/cmd/gc
Russ Cox 5383e28ea0 change string([]byte) to pass array, rather than &a[0],
to string convert.  if the byte array has length 0,
the computation of &a[0] throws an index bounds error.

for fixed size arrays, this ends up invoking arrays2d
unnecessarily, but it works.

R=ken
DELTA=304  (44 added, 28 deleted, 232 changed)
OCL=15674
CL=15678
2008-09-22 20:12:15 -07:00
..
const.c bugs 29, 61, 62, 74 2008-09-04 17:15:15 -07:00
dcl.c redeclaring methods 2008-09-15 19:07:23 -07:00
export.c compiler changes: 2008-09-22 12:45:01 -07:00
go.h compiler changes: 2008-09-22 12:45:01 -07:00
go.y compiler changes: 2008-09-22 12:45:01 -07:00
lex.c new grammar: 2008-09-16 19:14:33 -07:00
Makefile better yacc rule in Makefile 2008-09-22 10:56:54 -07:00
mksys.bash select 2008-07-24 15:57:30 -07:00
mparith1.c fixed bugs in const/case 2008-08-12 14:04:03 -07:00
mparith2.c shift operations to new spec 2008-08-28 19:59:42 -07:00
mparith3.c adding and deleting files 2008-08-09 17:33:35 -07:00
subr.c remove extraneous print 2008-09-22 17:29:12 -07:00
sys.go change string([]byte) to pass array, rather than &a[0], 2008-09-22 20:12:15 -07:00
sysimport.c change string([]byte) to pass array, rather than &a[0], 2008-09-22 20:12:15 -07:00
walk.c change string([]byte) to pass array, rather than &a[0], 2008-09-22 20:12:15 -07:00