X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Fisamb.c;h=dd2f84aecbaa257c6a761b2a6916b9674e31b032;hb=91201c1a293555f074bf49cde35febe01b6b804a;hp=bb5139300cd1de37743d70eb00ed90d55d6f821e;hpb=005e9e47b04e46decd36cc3bc409c4eb3cb973f0;p=idzebra-moved-to-github.git diff --git a/isamb/isamb.c b/isamb/isamb.c index bb51393..dd2f84a 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,4 +1,4 @@ -/* $Id: isamb.c,v 1.83 2006-08-14 10:40:17 adam Exp $ +/* $Id: isamb.c,v 1.84 2006-09-26 12:56:33 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -157,14 +157,13 @@ static void encode_ptr(char **dst, zint pos) #define decode_item_len decode_ptr #if ISAMB_PTR_CODEC -static void decode_ptr(const char **src1, zint *pos) +static void decode_ptr(const char **src, zint *pos) { - const unsigned char **src = (const unsigned char **) src1; zint d = 0; unsigned char c; unsigned r = 0; - while (((c = *(*src)++) & 128)) + while (((c = *(const unsigned char *)((*src)++)) & 128)) { d += ((zint) (c & 127) << r); r += 7;