diff options
author | Guido van Rossum <guido@python.org> | 1990-10-21 22:11:03 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1990-10-21 22:11:03 (GMT) |
commit | 5c52b6a75a4fdda6e1c04f663865b1d4123eca80 (patch) | |
tree | 3a5a29787b560903bf908a2c2fc0f386596563e8 /Objects | |
parent | 3e55cb6302c7136b9e5fec6dd9213aa27e9978de (diff) | |
download | cpython-5c52b6a75a4fdda6e1c04f663865b1d4123eca80.zip cpython-5c52b6a75a4fdda6e1c04f663865b1d4123eca80.tar.gz cpython-5c52b6a75a4fdda6e1c04f663865b1d4123eca80.tar.bz2 |
CHanged errors somewhat.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/intobject.c | 6 |
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 |