Commit f4c6b7d0 authored by Eric Coissac's avatar Eric Coissac

--no commit message

--no commit message
parent 1c45eb85
......@@ -456,9 +456,10 @@ int32_t nextReverse(buffer_t *buffer, int32_t current, size_t length, int32_t* e
{
int32_t pos= current+1;
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)));
size_t lkey = length + ((rshift==0) ? 0:(4-rshift))
pnuc key= (pnuc)((uint8_t*)(buffer->records) + buffer->recordSize * buffer->order1[current] + CODELENGTH(buffer->readSize) - CODELENGTH(lkey));
int comp=cmpCompPrefix(buffer,buffer->order1[pos],key, lkey);
if (comp==0)
{
......
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