pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-06-16
2008-06-16 21:52:24 by Martin Stjernholm <mast@lysator.liu.se>
d71d0059ef6e2fb2e2c7e8495163fd27467c2567 (
14
lines) (+
7
/-
7
)
[
Show
|
Annotate
]
Branch:
7.9
Slight optimization of a debug check.
Rev: src/operators.c:1.234
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: operators.c,v 1.
233
2008/
05
/
29
10
:
11
:
15
grubba
Exp $
+
|| $Id: operators.c,v 1.
234
2008/
06
/
16
21
:
52
:
24
mast
Exp $
*/ #include "global.h"
425:
} s = begin_wide_shared_string(a->size, shift); switch(shift) {
+
default:
+
#ifdef PIKE_DEBUG
+
Pike_fatal("cast: Bad shift: %d.\n", shift);
+
break;
case 0:
-
+
#endif
for(i = a->size; i--; ) { s->str[i] = a->item[i].u.integer; }
446:
} } break;
-
#ifdef PIKE_DEBUG
-
default:
-
free_string(end_shared_string(s));
-
Pike_fatal("cast: Bad shift: %d.\n", shift);
-
break;
-
#endif
+
} s = end_shared_string(s); pop_stack();