From a4344c4189faeaf4865a6e7d92b34810473452a9 Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Fri, 8 May 2015 16:44:16 +0200
Subject: [PATCH] Fixed newly introduced issue in the binding

---
 bob/learn/em/kmeans_trainer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bob/learn/em/kmeans_trainer.cpp b/bob/learn/em/kmeans_trainer.cpp
index fb1fc5f..2fe2c3c 100644
--- a/bob/learn/em/kmeans_trainer.cpp
+++ b/bob/learn/em/kmeans_trainer.cpp
@@ -484,8 +484,8 @@ static PyObject* PyBobLearnEMKMeansTrainer_reset_accumulators(PyBobLearnEMKMeans
   PyBobLearnEMKMeansMachineObject* kmeans_machine;
   if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!", kwlist, &PyBobLearnEMKMeansMachine_Type, &kmeans_machine)) return 0;
 
-  bool value = self->cxx->resetAccumulators(*kmeans_machine->cxx);
-  return Py_BuildValue("b", value);
+  self->cxx->resetAccumulators(*kmeans_machine->cxx);
+  Py_RETURN_NONE;
 
   BOB_CATCH_MEMBER("cannot perform the reset_accumulators method", 0)
 }
-- 
GitLab