]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/_helpers.c
hashsplit.py: convert from 'bits' to 'level' earlier in the sequence.
[bup.git] / lib / bup / _helpers.c
index 4d12ddfe9a7ea8d7cbf6d1d34f2fd795fbd62799..d077cd9710c08bd007f1a8424cd4ea2f326333ff 100644 (file)
@@ -87,6 +87,7 @@ static PyObject *splitbuf(PyObject *self, PyObject *args)
     if (!PyArg_ParseTuple(args, "t#", &buf, &len))
        return NULL;
     out = bupsplit_find_ofs(buf, len, &bits);
+    if (out) assert(bits >= BUP_BLOBBITS);
     return Py_BuildValue("ii", out, bits);
 }