Commits

Jörg Rädler  committed 570045f
  • Participants
  • Parent commits 907b0db

Comments (0)

Files changed (2)

+00.00.00
+- getting numpy include path automatically in setup.py
+- fixed https://github.com/jraedler/Polygon2/issues/2
+
 03.07.12
 - version 3.0.5
 - changed some data types to prevent warnings

File src/cPolygon.c

     val3 = PyObject_CallObject(rng, NULL);
     Py_DECREF(rng);
 
+    if (PyErr_Occurred()) {
+        PyErr_PrintEx(1);
+        Polygon_Raise(PolyError, "rng raised an error");
+        goto cleanup;
+    }
+
     if ((! PyFloat_Check(val1)) || (! PyFloat_Check(val2)) || (! PyFloat_Check(val3))) {
          Polygon_Raise(PolyError,
                        "rng returned something other than a float");