susumu.yata
null+****@clear*****
Tue Dec 16 10:44:32 JST 2014
susumu.yata 2014-11-19 15:59:53 +0900 (Wed, 19 Nov 2014) New Revision: 17db84c2f6275c12afe16a643c3ea47c0e5bc715 https://github.com/groonga/grnxx/commit/17db84c2f6275c12afe16a643c3ea47c0e5bc715 Message: Fix a bug of TextVector::match/unmatch(). (#115) Modified files: include/grnxx/data_types/vector/text.hpp Modified: include/grnxx/data_types/vector/text.hpp (+4 -2) =================================================================== --- include/grnxx/data_types/vector/text.hpp 2014-11-19 15:36:36 +0900 (8ff1aa1) +++ include/grnxx/data_types/vector/text.hpp 2014-11-19 15:59:53 +0900 (91b904b) @@ -104,7 +104,8 @@ class Vector<Text> { // TODO: This is because raw values are not normalized. size_t size = size_.value(); for (size_t i = 0; i < size; ++i) { - if (data_[i].unmatch(rhs.data_[i])) { + // TODO: This can be improved. + if (operator[](grnxx::Int(i)).unmatch(rhs[grnxx::Int(i)])) { return false; } } @@ -120,7 +121,8 @@ class Vector<Text> { // TODO: This is because raw values are not normalized. size_t size = size_.value(); for (size_t i = 0; i < size; ++i) { - if (data_[i].unmatch(rhs.data_[i])) { + // TODO: This can be improved. + if (operator[](grnxx::Int(i)).unmatch(rhs[grnxx::Int(i)])) { return true; } } -------------- next part -------------- HTML����������������������������...다운로드