pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2006-03-01
2006-03-01 19:40:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>
05ae7db12188bdb9dbdefdee7dc28f173d10a8a7 (
8
lines) (+
6
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed over allocation of local variables.
Rev: src/language.yacc:1.367
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: language.yacc,v 1.
366
2006/
02
/
27
12
:
15
:
55
mast
Exp $
+
|| $Id: language.yacc,v 1.
367
2006/
03
/
01
19
:
40
:
06
grubba
Exp $
*/ %pure_parser
4125:
debug_malloc_touch(type); debug_malloc_touch(str); reference_shared_string(str);
-
if (frame->current_number_of_locals == MAX_LOCAL)
+
/* NOTE: The number of locals can be 0..255 (not 256), due to
+
* the use of READ_INCR_BYTE() in apply_low.h.
+
*/
+
if (frame->current_number_of_locals == MAX_LOCAL
-1
)
{ yyerror("Too many local variables."); return -1;