PKGBUILDs/community/mongodb/0006-Fix-ARM-alignment-problems.patch

13 lines
609 B
Diff
Raw Normal View History

2015-04-02 12:22:31 +00:00
diff -urN a/src/mongo/db/storage/mmap_v1/btree/key.cpp b/src/mongo/db/storage/mmap_v1/btree/key.cpp
--- a/src/mongo/db/storage/mmap_v1/btree/key.cpp 2015-03-16 09:08:50.000000000 -0600
+++ b/src/mongo/db/storage/mmap_v1/btree/key.cpp 2015-04-02 06:14:33.858972179 -0600
@@ -424,7 +424,7 @@
2014-02-04 15:38:10 +00:00
p += 8;
break;
case cdouble:
- b.append("", (double&) *p);
+ b.append("", (reinterpret_cast< const PackedDouble& >(*p)).d);
p += sizeof(double);
break;
case cint: