From f320354d5a66856f2c483c2f2f99e961bcec1553 Mon Sep 17 00:00:00 2001 From: John Hunter Date: Tue, 5 Sep 2006 12:15:43 +0000 Subject: [PATCH] fixed a c decl bug in nxutil svn path=/trunk/matplotlib/; revision=2760 --- lib/matplotlib/ticker.py | 2 +- src/nxutils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index e502f6fd7873..5c0ba6b40fad 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -780,7 +780,7 @@ def scale_range(vmin, vmax, n = 1, threshold=100): maxabsv = max(abs(vmin), abs(vmax)) if maxabsv == 0 or dv/maxabsv < 1e-12: return 1.0, 0.0 - print vmin, vmax + #print vmin, vmax meanv = 0.5*(vmax+vmin) if abs(meanv)/dv < threshold: offset = 0 diff --git a/src/nxutils.c b/src/nxutils.c index 09992ba0ff08..677c9da10582 100644 --- a/src/nxutils.c +++ b/src/nxutils.c @@ -105,7 +105,7 @@ points_inside_poly(PyObject *self, PyObject *args) int npol, npoints, i; double *xv, *yv, x, y; int b; - PyObject *xypointsarg, *vertsarg; + PyObject *xypointsarg, *vertsarg, *ret; PyArrayObject *xypoints, *verts; PyArrayObject *mask; int dimensions[1]; @@ -210,7 +210,7 @@ points_inside_poly(PyObject *self, PyObject *args) PyMem_Free(xv); PyMem_Free(yv); - PyObject* ret = Py_BuildValue("O", mask); + ret = Py_BuildValue("O", mask); Py_XDECREF(mask); return ret;