Commit babd2830 authored by Guido van Rossum's avatar Guido van Rossum

CHanged errors somewhat.

parent de888426
...@@ -22,14 +22,14 @@ intobject TrueObject = { ...@@ -22,14 +22,14 @@ intobject TrueObject = {
static object * static object *
err_ovf() err_ovf()
{ {
err_setstr(RuntimeError, "integer overflow"); err_setstr(OverflowError, "integer overflow");
return NULL; return NULL;
} }
static object * static object *
err_zdiv() err_zdiv()
{ {
err_setstr(RuntimeError, "division by zero"); err_setstr(ZeroDivisionError, "integer division by zero");
return NULL; return NULL;
} }
...@@ -55,7 +55,7 @@ getintvalue(op) ...@@ -55,7 +55,7 @@ getintvalue(op)
register object *op; register object *op;
{ {
if (!is_intobject(op)) { if (!is_intobject(op)) {
err_badarg(); err_badcall();
return -1; return -1;
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment