susumu.yata
null+****@clear*****
Sun Apr 28 01:43:19 JST 2013
susumu.yata 2013-04-28 01:43:19 +0900 (Sun, 28 Apr 2013) New Revision: 1b636be7350f1c890c7177c2e0958e0ecfdf5e98 https://github.com/groonga/grnxx/commit/1b636be7350f1c890c7177c2e0958e0ecfdf5e98 Message: Fix a bug of grnxx::alpha::map::DoubleArray for double. Modified files: lib/grnxx/alpha/map/double_array.cpp Modified: lib/grnxx/alpha/map/double_array.cpp (+1 -1) =================================================================== --- lib/grnxx/alpha/map/double_array.cpp 2013-04-27 20:59:27 +0900 (1aa9bcb) +++ lib/grnxx/alpha/map/double_array.cpp 2013-04-28 01:43:19 +0900 (1192eef) @@ -168,7 +168,7 @@ void convert_key(double key, uint8_t *key_buf) { #ifndef WORDS_BIGENDIAN x = byte_swap(static_cast<uint64_t>(x)); #endif // WORDS_BIGENDIAN - std::memcpy(key_buf, &key, sizeof(key)); + std::memcpy(key_buf, &x, sizeof(x)); } void convert_key(GeoPoint key, uint8_t *key_buf) { -------------- next part -------------- HTML����������������������������... Download