null+****@clear*****
null+****@clear*****
2011年 10月 27日 (木) 19:12:50 JST
Kouhei Sutou 2011-10-27 10:12:50 +0000 (Thu, 27 Oct 2011) New Revision: aac8249792b091208511bc904f0d0ee8357417ef Log: use memset() instead of bzero. Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+1 -1) =================================================================== --- ha_mroonga.cc 2011-10-27 09:55:54 +0000 (ba093cd) +++ ha_mroonga.cc 2011-10-27 10:12:50 +0000 (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;