From 5c52b6a75a4fdda6e1c04f663865b1d4123eca80 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 21 Oct 1990 22:11:03 +0000 Subject: [PATCH] CHanged errors somewhat. --- Objects/intobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/intobject.c b/Objects/intobject.c index 391cd808170..2cf9439b7e7 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -22,14 +22,14 @@ intobject TrueObject = { static object * err_ovf() { - err_setstr(RuntimeError, "integer overflow"); + err_setstr(OverflowError, "integer overflow"); return NULL; } static object * err_zdiv() { - err_setstr(RuntimeError, "division by zero"); + err_setstr(ZeroDivisionError, "integer division by zero"); return NULL; } @@ -55,7 +55,7 @@ getintvalue(op) register object *op; { if (!is_intobject(op)) { - err_badarg(); + err_badcall(); return -1; } else