From 7a9e5a5789c16bdf0eadbec1dc715dedae362e76 Mon Sep 17 00:00:00 2001 From: Chang Y Date: Sun, 6 Mar 2022 02:47:06 -0600 Subject: [PATCH] Update peaksmodule.cc --- clipper/src/peaksmodule.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clipper/src/peaksmodule.cc b/clipper/src/peaksmodule.cc index 70bedf3..86adbb1 100755 --- a/clipper/src/peaksmodule.cc +++ b/clipper/src/peaksmodule.cc @@ -329,7 +329,7 @@ extern "C" PyObject *peaks_readsToWiggle_pysam(PyObject *self, PyObject *args) { jxns = PyDict_New(); allreads = PySet_New(NULL); - while (item = PyIter_Next(iterator)) { + while ((item = PyIter_Next(iterator))) { //skips reads on the wrong strand @@ -509,7 +509,7 @@ static struct PyModuleDef peaksmodule = { extern "C" PyMODINIT_FUNC PyInit_peaks(void) { PyImport_AddModule("peaks"); - PyModule_Create(&peaksmodule); + return PyModule_Create(&peaksmodule); } int usage(char *program_name)