From 34ebecf6b447797fc5d637ed1f17592dd9dd8088 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 12 Nov 2000 22:20:51 +0000 Subject: [PATCH] Quick bug fix [SVN r8191] --- py.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py.cpp b/py.cpp index 71151786..b651e3d0 100644 --- a/py.cpp +++ b/py.cpp @@ -100,7 +100,7 @@ T integer_from_python(PyObject* p, py::Type) PyErr_SetString(PyExc_ValueError, buffer); throw py::ArgumentError(); } -#if defined(__MWERKS__) && __MWERKS__ < 0x2400 +#if defined(__MWERKS__) && __MWERKS__ <= 0x2400 return 0; // Not smart enough to know that the catch clause always rethrows #endif } @@ -205,7 +205,8 @@ void from_python(PyObject* p, py::Type) const char* from_python(PyObject* p, py::Type) { const char* s = PyString_AsString(p); - if (!s) throw py::ArgumentError(); + if (!s) + throw py::ArgumentError(); return s; }