Branch: Tag:

2003-07-30

2003-07-30 18:44:38 by Martin Stjernholm <mast@lysator.liu.se>

Removed an overoptimization that could cause some casts to disappear even
when they might have effect.

Rev: src/las.c:1.320

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.319 2003/03/20 21:26:51 grubba Exp $ + || $Id: las.c,v 1.320 2003/07/30 18:44:38 mast Exp $   */      #include "global.h" - RCSID("$Id: las.c,v 1.319 2003/03/20 21:26:51 grubba Exp $"); + RCSID("$Id: las.c,v 1.320 2003/07/30 18:44:38 mast Exp $");      #include "language.h"   #include "interpret.h"
1470:       if (type == void_type_string) return mknode(F_POP_VALUE, n, 0);    + #if 0 +  /* It's not always safe to ignore the cast in this case. E.g. if n +  * has type program, the value can contain a function style program +  * pointer which the cast will turn into a real program +  * reference. */    if(type==n->type) return n; -  + #endif       res = mkemptynode();    res->token = F_CAST;