pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:3918:
} pos=0; SET_SVAL(a->item[0], T_STRING, 0, string, string_slice(sp[-2].u.string, pos, last-pos)); }else{ size=(ptrdiff_t)ceil( ((double)sp[-2].u.string->len) / len); a=allocate_array(size); for(last=0,e=0;e<size-1;e++) {
-
pos =
DO_NOT_WARN
(
(
ptrdiff_t)((e+1)*len+0.5)
)
;
+
pos = (ptrdiff_t)((e+1)*len+0.5);
SET_SVAL(a->item[e], T_STRING, 0, string, string_slice(sp[-2].u.string, last, pos-last)); last=pos; } pos=sp[-2].u.string->len; SET_SVAL(a->item[e], T_STRING, 0, string, string_slice(sp[-2].u.string, last, pos-last)); } a->type_field=BIT_STRING; pop_n_elems(2);
pike.git/src/operators.c:4266:
case T_OBJECT: CALL_OPERATOR(LFUN_MOD,2); break; case T_FLOAT: { FLOAT_TYPE foo; if(sp[-1].u.float_number == 0.0) OP_MODULO_BY_ZERO_ERROR("`%"); sp--;
-
foo =
DO_NOT_WARN
(
(
FLOAT_TYPE)(sp[-1].u.float_number /
-
sp[0].u.float_number)
)
;
-
foo =
DO_NOT_WARN
(
(
FLOAT_TYPE)(sp[-1].u.float_number -
-
sp[0].u.float_number * floor(foo))
)
;
+
foo = (FLOAT_TYPE)(sp[-1].u.float_number / sp[0].u.float_number);
+
foo = (FLOAT_TYPE)(sp[-1].u.float_number -
+
sp[0].u.float_number * floor(foo));
sp[-1].u.float_number=foo; return; } case T_INT: { int of = 0; INT_TYPE a = sp[-2].u.integer, b = sp[-1].u.integer; INT_TYPE res; if (b == 0)