Skip to content

Commit

Permalink
Fix a bug of grnxx::alpha::map::DoubleArray for double.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Apr 27, 2013
1 parent 04bb3c2 commit 1b636be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grnxx/alpha/map/double_array.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b636be

Please sign in to comment.