summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 391cd80..2cf9439 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