X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fpds.c;h=6f63e1a1f3943d0b3d241fcbe9f1fc21c08bb01d;hb=3fbab274e9932e10d257e70fad310e00a4260d43;hp=0563c53653515d793c5be5c741809f8844bfb2b5;hpb=46d18f60766f997d0ca37c5937f58c0c06477932;p=umurmur.git diff --git a/src/pds.c b/src/pds.c index 0563c53..6f63e1a 100644 --- a/src/pds.c +++ b/src/pds.c @@ -95,7 +95,7 @@ uint8_t Pds_next8(pds_t *pds) int Pds_skip(pds_t *pds, int offset) { - if (pds->offset + offset < pds->maxsize) { + if (pds->offset + offset <= pds->maxsize) { pds->offset += offset; return offset; } else {