[SciPy-Dev] Two quick fixes for scipy 0.10 and trunk

Christoph Gohlke cgohlke@uci....
Mon Sep 12 00:13:00 CDT 2011


Hello,

please consider these two trivial changes for scipy 0.10 and master:


1) Initialize variable *d in _logit.c.src:

diff --git a/scipy/special/_logit.c.src b/scipy/special/_logit.c.src
index 7b830f7..237ca83 100644
--- a/scipy/special/_logit.c.src
+++ b/scipy/special/_logit.c.src
@@ -107,7 +107,7 @@ static PyModuleDef moduledef = {
      NULL
  };

-PyObject *
+PyMODINIT_FUNC
  PyInit__logit()
  {
      PyObject *m, *f, *d;
@@ -119,6 +119,8 @@ PyInit__logit()
      import_array();
      import_umath();

+    d = PyModule_GetDict(m);
+
      f = PyUFunc_FromFuncAndData(logit_funcs,data, types, 3, 1, 1,
                                  PyUFunc_None, "logit",NULL , 0);
      PyDict_SetItemString(d, "logit", f);



2) Fix syntax error in fblas_l1.pyf.src:

diff --git a/scipy/linalg/fblas_l1.pyf.src b/scipy/linalg/fblas_l1.pyf.src
index 1543a20..664bdd8 100644
--- a/scipy/linalg/fblas_l1.pyf.src
+++ b/scipy/linalg/fblas_l1.pyf.src
@@ -347,7 +347,7 @@ function i<prefix>amax(n,x,offx,incx) result(k)

    ! This is to avoid Fortran wrappers.
    integer i<prefix>amax,k
-  fortranname F_FUNC(i<prefix>amax,I<S,D,C,Z>>AMAX)
+  fortranname F_FUNC(i<prefix>amax,I<S,D,C,Z>AMAX)
    intent(c) i<prefix>amax
    <ftype> dimension(*), intent(in) :: x
    integer optional, intent(in), check(incx>0||incx<0) :: incx = 1


Thanks,

Christoph
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scipy-0.10b1.diff
Url: http://mail.scipy.org/pipermail/scipy-dev/attachments/20110911/130540db/attachment.pl 


More information about the SciPy-Dev mailing list