Skip to content

Commit

Permalink
Not pointer types in pyBigWig
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Ryan committed Jan 17, 2025
1 parent 2d8eb13 commit 2ae221d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyBigWig.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ PyObject *pyBwAddHeader(pyBigWigFile_t *self, PyObject *args, PyObject *kwds) {
}

//Create the chromosome list
bw->cl = bwCreateChromList(chroms, lengths, n);
bw->cl = bwCreateChromList((const char* const*) chroms, lengths, n);
if(!bw->cl) {
PyErr_SetString(PyExc_RuntimeError, "Received an error in bwCreateChromList");
goto error;
Expand Down Expand Up @@ -1248,7 +1248,7 @@ int PyAddIntervals(pyBigWigFile_t *self, PyObject *chroms, PyObject *starts, PyO
if(PyErr_Occurred()) goto error;
}

rv = bwAddIntervals(bw, cchroms, ustarts, uends, fvalues, n);
rv = bwAddIntervals(bw, (const char * const*) cchroms, ustarts, uends, fvalues, n);
if(!rv) {
self->lastTid = bwGetTid(bw, cchroms[n-1]);
self->lastStart = uends[n-1];
Expand Down

0 comments on commit 2ae221d

Please sign in to comment.