[Scipy-tickets] [SciPy] #1596: typo in vq_module.c

SciPy Trac scipy-tickets@scipy....
Tue Feb 14 16:35:04 CST 2012


#1596: typo in vq_module.c
----------------------+-----------------------------------------------------
 Reporter:  selasley  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  0.10.0     
 Keywords:            |  
----------------------+-----------------------------------------------------
 clang flags this if statement in scipy/cluster/src/vq_module.c

    typenum1 = PyArray_TYPE(obs);
    typenum2 = PyArray_TYPE(code);
    if (typenum1 != typenum1) {
                 PyErr_Format(PyExc_ValueError,
                              "observation and code should have same
 type");

 Should that be
    if (typenum1 != typenum2) {

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1596>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list