[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] use memset() instead of bzero.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:30:59 JST 2012


Kouhei Sutou	2011-10-27 19:12:50 +0900 (Thu, 27 Oct 2011)

  New Revision: aac8249792b091208511bc904f0d0ee8357417ef
  https://github.com/mroonga/mroonga/commit/aac8249792b091208511bc904f0d0ee8357417ef

  Log:
    use memset() instead of bzero.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2011-10-27 18:55:54 +0900 (ba093cd)
+++ ha_mroonga.cc    2011-10-27 19:12:50 +0900 (a8f87c1)
@@ -893,7 +893,7 @@ static void mrn_store_field(grn_ctx *ctx, Field *field, grn_obj *col, grn_id id)
       uchar wkb[SRID_SIZE + WKB_HEADER_SIZE + POINT_DATA_SIZE];
       int latitude, longitude;
       GRN_GEO_POINT_VALUE(&buf, latitude, longitude);
-      bzero(wkb, SRID_SIZE);
+      memset(wkb, 0, SRID_SIZE);
       memset(wkb + SRID_SIZE, Geometry::wkb_ndr, 1); // wkb_ndr is meaningless.
       int4store(wkb + SRID_SIZE + 1, Geometry::wkb_point);
       double latitude_in_degree, longitude_in_degree;
-------------- next part --------------
HTML����������������������������...
Download 



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