Index: src/OFDate.m
==================================================================
--- src/OFDate.m
+++ src/OFDate.m
@@ -333,11 +333,11 @@
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
d.u = (uint64_t)[element hexadecimalValue];
- seconds = of_bswap_double_if_le(d.d);
+ seconds = d.d;
objc_autoreleasePoolPop(pool);
} @catch (id e) {
[self release];
@throw e;
@@ -421,11 +421,11 @@
} d;
element = [OFXMLElement elementWithName: [self className]
namespace: OF_SERIALIZATION_NS];
- d.d = of_bswap_double_if_le(seconds);
+ d.d = seconds;
[element setStringValue:
[OFString stringWithFormat: @"%016" PRIx64, d.u]];
[element retain];
Index: src/OFNumber.m
==================================================================
--- src/OFNumber.m
+++ src/OFNumber.m
@@ -758,21 +758,21 @@
} f;
f.u = (uint32_t)[element hexadecimalValue];
type = OF_NUMBER_FLOAT;
- value.float_ = of_bswap_float_if_le(f.f);
+ value.float_ = f.f;
} else if ([typeString isEqual: @"double"]) {
union {
double d;
uint64_t u;
} d;
d.u = (uint64_t)[element hexadecimalValue];
type = OF_NUMBER_DOUBLE;
- value.double_ = of_bswap_double_if_le(d.d);
+ value.double_ = d.d;
} else
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
@@ -1330,11 +1330,11 @@
union {
float f;
uint32_t u;
} f;
- f.f = of_bswap_float_if_le(value.float_);
+ f.f = value.float_;
[element addAttributeWithName: @"type"
stringValue: @"float"];
[element setStringValue:
[OFString stringWithFormat: @"%08" PRIx32, f.u]];
@@ -1344,11 +1344,11 @@
union {
double d;
uint64_t u;
} d;
- d.d = of_bswap_double_if_le(value.double_);
+ d.d = value.double_;
[element addAttributeWithName: @"type"
stringValue: @"double"];
[element setStringValue:
[OFString stringWithFormat: @"%016" PRIx64, d.u]];
Index: tests/serialization.xml
==================================================================
--- tests/serialization.xml
+++ tests/serialization.xml
@@ -4,13 +4,13 @@
Qu"xbar
test
1234
- adfa5c6d454a9340
+ 40934a456d5cfaad
asd
- adfa5c6d454a9340
+ 40934a456d5cfaad