Skip to content

Commit de19ac6

Browse files
committed
Remove duplicate const
Remove duplicate `const` to stop the warning: "duplicate 'const' declaration specifier"
1 parent 9aae93e commit de19ac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitdb/_delta_apply.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ PyObject* DCL_apply(DeltaChunkList* self, PyObject* args)
753753
PyObject* tmpargs = PyTuple_New(1);
754754

755755
const uchar* data = TSI_first(&self->istream);
756-
const uchar const* dend = TSI_end(&self->istream);
756+
const uchar* dend = TSI_end(&self->istream);
757757

758758
DeltaChunk dc;
759759
DC_init(&dc, 0, 0, 0, NULL);
@@ -979,8 +979,8 @@ PyObject* connect_deltas(PyObject *self, PyObject *dstreams)
979979
const uchar* data;
980980
Py_ssize_t dlen;
981981
PyObject_AsReadBuffer(db, (const void**)&data, &dlen);
982-
const uchar const* dstart = data;
983-
const uchar const* dend = data + dlen;
982+
const uchar* dstart = data;
983+
const uchar* dend = data + dlen;
984984
div.dstream = dstart;
985985

986986
if (dlen > pow(2, 32)){

0 commit comments

Comments
 (0)