null+****@clear*****
null+****@clear*****
2011年 7月 5日 (火) 14:18:17 JST
Susumu Yata 2011-07-05 05:18:17 +0000 (Tue, 05 Jul 2011) New Revision: fe026d591e2c67d89e5bb2a10487a4da910893ce Log: fixed a bug of grn::dat::KeyCursor. Modified files: lib/dat/key-cursor.cpp Modified: lib/dat/key-cursor.cpp (+3 -0) =================================================================== --- lib/dat/key-cursor.cpp 2011-07-04 12:19:07 +0000 (f6d4afd) +++ lib/dat/key-cursor.cpp 2011-07-05 05:18:17 +0000 (5d3833d) @@ -177,6 +177,9 @@ void KeyCursor::ascending_init(const String &min_str, const String &max_str) { !buf_.push_back(node_id ^ node.label() ^ node.sibling())); } return; + } else if (node.sibling() != INVALID_LABEL) { + GRN_DAT_THROW_IF(MEMORY_ERROR, + !buf_.push_back(node_id ^ node.label() ^ node.sibling())); } UInt16 label = node.child();