diff options
author | Guido van Rossum <guido@python.org> | 1997-05-22 22:35:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-22 22:35:47 (GMT) |
commit | 7e8d26d78c8e015d9e1cc22b9df8144e62b6fa2a (patch) | |
tree | 0cb25a8d6cb6d8fe0838e9fdac3c83e2d2ae9932 /Python/marshal.c | |
parent | 78a1ed3d701590201a6865abd0f227ff7d591eb4 (diff) | |
download | cpython-7e8d26d78c8e015d9e1cc22b9df8144e62b6fa2a.zip cpython-7e8d26d78c8e015d9e1cc22b9df8144e62b6fa2a.tar.gz cpython-7e8d26d78c8e015d9e1cc22b9df8144e62b6fa2a.tar.bz2 |
PyFile_WriteString now returns an error indicator instead of calling
PyErr_Clear(). Add checking of those errors.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r-- | Python/marshal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 6880bdf..6a8ec46 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -354,11 +354,11 @@ r_long64(p) #else if (r_long(p) != 0) { PyObject *f = PySys_GetObject("stderr"); - PyErr_Clear(); if (f != NULL) - PyFile_WriteString( + (void) PyFile_WriteString( "Warning: un-marshal 64-bit int in 32-bit mode\n", f); + PyErr_Clear(); } #endif return x; |