[Groonga-commit] groonga/grnxx at 3fa951c [master] Fix a bug of NegativeNode<Float>::adjust(). (#37)

Zurück zum Archiv-Index

susumu.yata null+****@clear*****
Mon Aug 18 17:22:37 JST 2014


susumu.yata	2014-08-18 17:22:37 +0900 (Mon, 18 Aug 2014)

  New Revision: 3fa951cf3366f2f7a6a87dc113b3b164e11102a5
  https://github.com/groonga/grnxx/commit/3fa951cf3366f2f7a6a87dc113b3b164e11102a5

  Message:
    Fix a bug of NegativeNode<Float>::adjust(). (#37)

  Modified files:
    lib/grnxx/expression.cpp

  Modified: lib/grnxx/expression.cpp (+2 -2)
===================================================================
--- lib/grnxx/expression.cpp    2014-08-18 17:16:28 +0900 (8a5fca3)
+++ lib/grnxx/expression.cpp    2014-08-18 17:22:37 +0900 (ae619d8)
@@ -867,11 +867,11 @@ class NegativeNode<Float> : public UnaryNode<Float, Float> {
 };
 
 bool NegativeNode<Float>::adjust(Error *error, ArrayRef<Record> records) {
-  if (!fill_arg_values(error, records)) {
+  if (!arg_->adjust(error, records)) {
     return false;
   }
   for (Int i = 0; i < records.size(); ++i) {
-    records.set_score(i, arg_values_[i]);
+    records.set_score(i, -records.get_score(i));
   }
   return true;
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index