Skip to content

Remove duplicate const #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions gitdb/_delta_apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ uint DIV_info_rbound(const DeltaInfoVector* vec, const DeltaInfo* di)

// return size of the given delta info item
inline
uint DIV_info_size2(const DeltaInfoVector* vec, const DeltaInfo* di, const DeltaInfo const* veclast)
uint DIV_info_size2(const DeltaInfoVector* vec, const DeltaInfo* di, const DeltaInfo* const veclast)
{
if (veclast == di){
return vec->di_last_size;
Expand Down Expand Up @@ -534,7 +534,7 @@ uint DIV_count_slice_bytes(const DeltaInfoVector* src, uint ofs, uint size)
}
}

const DeltaInfo const* vecend = DIV_end(src);
const DeltaInfo* const vecend = DIV_end(src);
const uchar* nstream;
for( ;cdi < vecend; ++cdi){
nstream = next_delta_info(src->dstream + cdi->dso, &dc);
Expand Down Expand Up @@ -753,7 +753,7 @@ PyObject* DCL_apply(DeltaChunkList* self, PyObject* args)
PyObject* tmpargs = PyTuple_New(1);

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

DeltaChunk dc;
DC_init(&dc, 0, 0, 0, NULL);
Expand Down Expand Up @@ -979,8 +979,8 @@ PyObject* connect_deltas(PyObject *self, PyObject *dstreams)
const uchar* data;
Py_ssize_t dlen;
PyObject_AsReadBuffer(db, (const void**)&data, &dlen);
const uchar const* dstart = data;
const uchar const* dend = data + dlen;
const uchar* const dstart = data;
const uchar* const dend = data + dlen;
div.dstream = dstart;

if (dlen > pow(2, 32)){
Expand Down