[Groonga-mysql-commit] mroonga/mroonga at 512e73e [master] Extract assignment expression from if condition

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Tue Feb 4 10:53:07 JST 2014


Kouhei Sutou	2014-02-04 10:53:07 +0900 (Tue, 04 Feb 2014)

  New Revision: 512e73e7c7d766ace17e2a53eab182b5bcbb2d5a
  https://github.com/mroonga/mroonga/commit/512e73e7c7d766ace17e2a53eab182b5bcbb2d5a

  Message:
    Extract assignment expression from if condition

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -1)
===================================================================
--- ha_mroonga.cpp    2014-02-04 10:48:10 +0900 (995a0a8)
+++ ha_mroonga.cpp    2014-02-04 10:53:07 +0900 (c99a815)
@@ -1183,7 +1183,8 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,
   Geometry_buffer buffer;
   Geometry *geometry;
 
-  if (!(geometry = Geometry::construct(&buffer, wkb, wkb_size))) {
+  geometry = Geometry::construct(&buffer, wkb, wkb_size);
+  if (!geometry) {
     return -1;
   }
   switch (geometry->get_class_info()->m_type_id) {
-------------- next part --------------
HTML����������������������������...
Download 



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