summaryrefslogtreecommitdiff
path: root/math/py-gsl/files/patch-src_callback_odeiv.ic
blob: 40158a33c09ebe70dcdc19a3edfcbd7e6c9d0d5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$FreeBSD$

--- src/callback/odeiv.ic.orig
+++ src/callback/odeiv.ic
@@ -397,13 +397,14 @@
 	      goto fail;	    
 	 }	 
          FUNC_MESS("T_0 FLOAT");
-         int dim = 1;
+         { int dim = 1;
          ts = (PyArrayObject *) PyGSL_New_Array(1, &dim, PyArray_DOUBLE);
 	 if(ts == NULL) {
 	      line = __LINE__ - 2;
 	      goto fail;
 	 }
          (*(double *)(ts->data)) = v;
+	 }
     }
     FUNC_MESS("T END");
     if(PyGSL_STRIDE_RECALC(ts->strides[0], sizeof(double), &stride) != GSL_SUCCESS)