pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2015-05-01
2015-05-01 10:03:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fb8cc029b42c955449bceff847cd4f9bcad3e7ce (
12
lines) (+
12
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Operators: Added some breaks. Fixes [CID 1296249].
305:
default: Pike_error("Cannot cast %s to int.\n", get_name_of_type(TYPEOF(sp[-1])));
+
break;
} }
424:
default: Pike_error("Cannot cast %s to string.\n", get_name_of_type(TYPEOF(sp[-1])));
+
break;
case PIKE_T_STRING: return;
517:
{ default: Pike_error("Cannot perform cast to that type.\n");
+
break;
case T_MULTISET: switch(TYPEOF(sp[-1]))
4828:
bad_arg_error (range_func_name (bound_types), ind, sp - ind, 1, "object", ind, "Object got neither `[..] nor `[].\n");
+
break;
case 2: bad_arg_error (range_func_name (bound_types), ind, sp - ind, 1, "object", ind, "Object got no `[..] and there is no _sizeof to " "translate the from-the-end index to use `[].\n");
-
+
break;
case 3: bad_arg_error (range_func_name (bound_types), ind, 3, 1, "object", ind, "Cannot call `[..] in destructed object.\n");
-
+
break;
default: free_svalue (ind); move_svalue (ind, sp - 1); /* low and high have lost their refs in call_old_range_lfun. */ sp = ind + 1;
-
+
break;
} break;
5036:
case 1: SIMPLE_ARG_ERROR ("predef::`[..]", 1, "Object got neither `[..] nor `[].\n");
+
break;
case 2: SIMPLE_ARG_ERROR ("predef::`[..]", 1, "Object got no `[..] and there is no _sizeof to " "translate the from-the-end index to use `[].\n");
-
+
break;
case 3: SIMPLE_ARG_ERROR ("predef::`[..]", 1, "Cannot call `[..] in destructed object.\n");
-
+
break;
default: free_svalue (ind); move_svalue (ind, sp - 1); /* The bound types are simple integers and the bounds * themselves have lost their refs in call_old_range_lfun. */ sp = ind + 1;
-
+
break;
} }