pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2018-02-19
2018-02-19 17:54:08 by Martin Nilsson <nilsson@fastmail.com>
3efc85e6eb41a3fff674beeb1870f159f26633db (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Remove base_sp from math_error
31:
#include "pike_compiler.h" #define OP_DIVISION_BY_ZERO_ERROR(FUNC) \
-
math_error(FUNC,
Pike_sp-
2,
2,
0, "Division by zero.\n")
+
math_error(FUNC, 2, 0, "Division by zero.\n")
#define OP_MODULO_BY_ZERO_ERROR(FUNC) \
-
math_error(FUNC,
Pike_sp-
2,
2,
0, "Modulo by zero.\n")
+
math_error(FUNC, 2, 0, "Modulo by zero.\n")
/* This calculation should always give some margin based on the size. */ /* It utilizes that log10(256) ~= 2.4 < 5/2. */