Skip to content

Commit

Permalink
Remove useless overflow check
Browse files Browse the repository at this point in the history
Refs #73, #74
  • Loading branch information
lericson committed Mar 29, 2016
1 parent 1b4dfa2 commit 5840a99
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/_pylibmcmodule.c
Expand Up @@ -1501,11 +1501,6 @@ static PyObject *_PylibMC_IncrSingle(PylibMC_Client *self,
return NULL;
}

if ((unsigned int)delta != delta) {
PyErr_Format(PyExc_OverflowError, "%d", delta);
return NULL;
}

incr.key = key;
incr.key_len = key_len;
incr.incr_func = incr_func;
Expand Down

0 comments on commit 5840a99

Please sign in to comment.