Branch: Tag:

2008-05-08

2008-05-08 15:28:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed ref-count bug introduced in previous commit.

Rev: src/pike_types.c:1.329

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: pike_types.c,v 1.328 2008/05/08 10:07:39 grubba Exp $ + || $Id: pike_types.c,v 1.329 2008/05/08 15:28:40 grubba Exp $   */      #include "global.h"
5950:    }   #endif /* PIKE_DEBUG */    /* No need to parform advanced checking in the trivial case... */ -  if (arg_type != fun_type->car) { +  if (arg_type != (tmp2 = fun_type->car)) {    if ((flags & CALL_7_6) && (arg_type == void_type_string)) {    /* Compat with Pike 7.6 and earlier. */    arg_type = zero_type_string;    }    -  if (!low_pike_types_le(arg_type, tmp2 = fun_type->car, 0, 0) && +  if (!low_pike_types_le(arg_type, tmp2, 0, 0) &&    ((flags & CALL_STRICT) ||    !low_match_types(arg_type, tmp2, NO_SHORTCUTS))) {    /* No match. */