@@ -366,13 +366,13 @@ uint32_t hash; union { double d; uint8_t b[sizeof(double)]; } d; - uint8_t i; + uint_fast8_t i; - d.d = OF_BSWAP_DOUBLE_IF_LE(seconds); + d.d = OF_BSWAP_DOUBLE_IF_BE(seconds); OF_HASH_INIT(hash); for (i = 0; i < sizeof(double); i++) OF_HASH_ADD(hash, d.b[i]);