X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=dict%2Flookup.c;h=d47267f23631cd25c4ec90aade2da7ab98c3375d;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hp=6a45359d7e2b8df1b5c5196d143a80176e03a4eb;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/dict/lookup.c b/dict/lookup.c index 6a45359..d47267f 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -40,7 +40,7 @@ static char *dict_look(Dict dict, const Dict_char *str, Dict_ptr ptr) dict_bf_readp(dict->dbf, ptr, &p); mid = lo = 0; hi = DICT_nodir(p)-1; - indxp = (short*) ((char*) p+DICT_bsize(p)-sizeof(short)); + indxp = (short*) ((char*) p+DICT_bsize(p)-sizeof(short)); while (lo <= hi) { mid = (lo+hi)/2;