Hello, I am testing my queries while having following test case:
given CL_NS(search)::Query * pQuery then result of pQuery must equal to (except of score, ofcourse) result of new CL_NS(search)::ConstantScoreQuery( new CL_NS(search)::QueryFilter( pQuery )); This test has failed and I assume that it is because of the bitset method nextSetBit. The problem is the condition at line bitset.cpp(192) if (bits[fromIndex >> 3] & (1 << (fromIndex & 7)) != 0) because the operator != is evaluated first, & operator after that. So please change it to: if ((bits[fromIndex >> 3] & (1 << (fromIndex & 7))) != 0) Jiri ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers