summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-12-30 18:16:23 -0500
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2018-12-31 10:59:03 -0500
commit6216c1f39ca10f148a82cb2b9bba0bd2b61c8793 (patch)
tree8666dbbbb660ee10dd02d41efe6caf0be04f659a /src
parentdbd9c1eb6b0fec717999ae6527578a585835ee27 (diff)
downloadmongo-6216c1f39ca10f148a82cb2b9bba0bd2b61c8793.tar.gz
SERVER-38730 fix struct ByteOrderConverter<Decimal128::Value> to return the converted struct
Diffstat (limited to 'src')
-rw-r--r--src/mongo/platform/endian.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/platform/endian.h b/src/mongo/platform/endian.h
index 00d4adea606..39d86a9ea45 100644
--- a/src/mongo/platform/endian.h
+++ b/src/mongo/platform/endian.h
@@ -422,26 +422,26 @@ struct ByteOrderConverter<Decimal128::Value> {
typedef Decimal128::Value T;
inline static T nativeToBig(T t) {
- ByteOrderConverter<uint64_t>::nativeToBig(t.low64);
- ByteOrderConverter<uint64_t>::nativeToBig(t.high64);
+ t.low64 = ByteOrderConverter<uint64_t>::nativeToBig(t.low64);
+ t.high64 = ByteOrderConverter<uint64_t>::nativeToBig(t.high64);
return t;
}
inline static T bigToNative(T t) {
- ByteOrderConverter<uint64_t>::bigToNative(t.low64);
- ByteOrderConverter<uint64_t>::bigToNative(t.high64);
+ t.low64 = ByteOrderConverter<uint64_t>::bigToNative(t.low64);
+ t.high64 = ByteOrderConverter<uint64_t>::bigToNative(t.high64);
return t;
}
inline static T nativeToLittle(T t) {
- ByteOrderConverter<uint64_t>::nativeToLittle(t.low64);
- ByteOrderConverter<uint64_t>::nativeToLittle(t.high64);
+ t.low64 = ByteOrderConverter<uint64_t>::nativeToLittle(t.low64);
+ t.high64 = ByteOrderConverter<uint64_t>::nativeToLittle(t.high64);
return t;
}
inline static T littleToNative(T t) {
- ByteOrderConverter<uint64_t>::littleToNative(t.low64);
- ByteOrderConverter<uint64_t>::littleToNative(t.high64);
+ t.low64 = ByteOrderConverter<uint64_t>::littleToNative(t.low64);
+ t.high64 = ByteOrderConverter<uint64_t>::littleToNative(t.high64);
return t;
}
};