pike.git/
src/
las.c
Branch:
Tag:
Non-build tags
All tags
No tags
2007-05-04
2007-05-04 18:35:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e24536813fe3189e3699130e086f3c35e398ac71 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Potential fix for [bug
4362 (#4362)
].
Rev: src/las.c:1.391
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: las.c,v 1.
390
2007/
04
/
27
14
:
39
:
53
grubba Exp $
+
|| $Id: las.c,v 1.
391
2007/
05/
04
18
:
35
:
18
grubba Exp $
*/ #include "global.h"
3888:
yyerror("Indexing a void expression."); /* The optimizer converts this to an expression returning 0. */ copy_pike_type(n->type, zero_type_string);
-
} else {
+
} else
if (CDR(n))
{
type_a=CAR(n)->type; type_b=CDR(n)->type; if(!check_indexing(type_a, type_b, n)) if(!Pike_compiler->catch_level) yyerror("Indexing on illegal type."); n->type=index_type(type_a, type_b,n);
-
+
} else {
+
copy_pike_type(n->type, mixed_type_string);
} break;