[Scipy-tickets] [SciPy] #1022: use of array place holder in the style double array[0]
SciPy Trac
scipy-tickets@scipy....
Sun Jan 22 09:27:28 CST 2012
#1022: use of array place holder in the style double array[0]
---------------------------+------------------------------------------------
Reporter: neinhues | Owner: peridot
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: scipy.spatial | Version: 0.7.0
Keywords: |
---------------------------+------------------------------------------------
Changes (by pv):
* owner: somebody => peridot
* component: Other => scipy.spatial
Old description:
> code like this is used in scipy/spatial/ckdtree.c, line 395.
> This code is rejected by the HP compiler (see below). I believe this
> should be changed such that a pointer to a double array is used
> in the node structure. Of course, the pointer has to correctly
> initialised later in the code.
>
> "scipy/spatial/ckdtree.c", line 395: error #2094: the size of an array
> must be greater than zero
> double side_distances[0];
New description:
code like this is used in scipy/spatial/ckdtree.c, line 395.
This code is rejected by the HP compiler (see below). I believe this
should be changed such that a pointer to a double array is used
in the node structure. Of course, the pointer has to correctly
initialised later in the code.
"scipy/spatial/ckdtree.c", line 395: error #2094: the size of an array
must be greater than zero
double side_distances[0];
--
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1022#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list