Skip to content

Commit

Permalink
simplify exception handling on integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RouquinBlanc authored and bwoodsend committed Feb 20, 2022
1 parent f9aa23b commit e6dc25c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/objToJSON.c
Expand Up @@ -489,13 +489,8 @@ static void Object_beginTypeContext (JSOBJ _obj, JSONTypeContext *tc, JSONObject
GET_TC(tc)->unsignedLongValue = PyLong_AsUnsignedLongLong(obj);

exc = PyErr_Occurred();
if (exc)
{
PRINTMARK();
goto INVALID;
}
}
else

if (exc)
{
PRINTMARK();
Expand Down

0 comments on commit e6dc25c

Please sign in to comment.