Commit 0b1ed507 authored by Manuel Günther's avatar Manuel Günther

Removed build warning.

parent a21a63da
......@@ -18,7 +18,7 @@ before_install:
- sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev
- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq gfortran; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links --find-links --use-wheel numpy$NUMPYSPEC sphinx nose; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links --find-links --use-wheel numpy$NUMPYSPEC sphinx nose==1.3.0 jinja2==2.6; fi
- pip install cpp-coveralls
- python
......@@ -287,7 +287,7 @@ static PyObject* PyBobLearnLinearWCCNTrainer_Train
// checks all elements in X have the same number of columns
Py_ssize_t ncol = Xseq_[0]->shape[1];
for (Py_ssize_t k=1; k<Xseq.size(); ++k) {
for (Py_ssize_t k=1; k<(Py_ssize_t)Xseq.size(); ++k) {
if (Xseq_[k]->shape[1] != ncol) {
PyErr_Format(PyExc_RuntimeError, "`%s' requires all matrices in input sequence `X' to have the same number of columns, but entry at position 0 has %" PY_FORMAT_SIZE_T "d columns white entry in position %" PY_FORMAT_SIZE_T "d has %" PY_FORMAT_SIZE_T "d columns", Py_TYPE(self)->tp_name, ncol, k, Xseq_[k]->shape[1]);
return 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment