Commit 8620e20c authored by Eric Coissac's avatar Eric Coissac

--no commit message

--no commit message
parent cefb683b
......@@ -454,13 +454,14 @@ int32_t lookForReverse(buffer_t *buffer, pnuc key, size_t length, int32_t* endof
int32_t nextReverse(buffer_t *buffer, int32_t current, size_t length, int32_t* endoflist)
{
int32_t pos= current+1;
// int32_t lkey = CODELENGTH(buffer->readSize);
pnuc key= (pnuc)((uint8_t*)(buffer->records) + buffer->recordSize * buffer->order1[current]);
int32_t rshift= buffer->readSize & 3;
int comp=cmpCompPrefix(buffer,buffer->order1[pos],key, length + ((rshift==0) ? 0:(4-rshift)));
if (comp==0)
*endoflist=0;
return pos;
*endoflist=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment