pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:4278:
} } PIKE_ERROR("`%", "Modulo on different types.\n", sp, 2); } switch(TYPEOF(sp[-2])) { case T_OBJECT: if(!call_lfun(LFUN_MOD,LFUN_RMOD))
-
PIKE_ERROR("`%", "Modulo on
different
types
.\n", sp, 2);
+
PIKE_ERROR("`%", "Modulo on
objects
without `% operator
.\n", sp, 2);
return; case T_FLOAT: { FLOAT_TYPE foo; if(sp[-1].u.float_number == 0.0) OP_MODULO_BY_ZERO_ERROR("`%"); sp--; foo = (FLOAT_TYPE)(sp[-1].u.float_number / sp[0].u.float_number); foo = (FLOAT_TYPE)(sp[-1].u.float_number -