[Groonga-commit] groonga/groonga at 644dea1 [master] mrb: simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 7 15:43:07 JST 2016


Kouhei Sutou	2016-04-07 15:43:07 +0900 (Thu, 07 Apr 2016)

  New Revision: 644dea161d3e83419eab5a5840fbd344de6f3599
  https://github.com/groonga/groonga/commit/644dea161d3e83419eab5a5840fbd344de6f3599

  Message:
    mrb: simplify

  Modified files:
    lib/mrb/mrb_object.c

  Modified: lib/mrb/mrb_object.c (+1 -5)
===================================================================
--- lib/mrb/mrb_object.c    2016-04-07 15:42:19 +0900 (d8b74d6)
+++ lib/mrb/mrb_object.c    2016-04-07 15:43:07 +0900 (1356e02)
@@ -114,11 +114,7 @@ object_equal(mrb_state *mrb, mrb_value self)
 
   object = DATA_PTR(self);
   other_object = DATA_PTR(mrb_other);
-  if (object == other_object) {
-    return mrb_true_value();
-  } else {
-    return mrb_false_value();
-  }
+  return mrb_bool_value(object == other_object);
 }
 
 static mrb_value
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index