summaryrefslogtreecommitdiff
path: root/test/backupstorefix/testbackupstorefix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/backupstorefix/testbackupstorefix.cpp')
-rw-r--r--test/backupstorefix/testbackupstorefix.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/backupstorefix/testbackupstorefix.cpp b/test/backupstorefix/testbackupstorefix.cpp
index a4edfd31..c36bb8b8 100644
--- a/test/backupstorefix/testbackupstorefix.cpp
+++ b/test/backupstorefix/testbackupstorefix.cpp
@@ -411,11 +411,11 @@ int test(int argc, const char *argv[])
} h;
TEST_THAT(file->Read(&h, sizeof(h)) == sizeof(h));
// Modify
- TEST_THAT(ntoh64(h.hdr.mOtherFileID) == 0);
- TEST_THAT(ntoh64(h.hdr.mNumBlocks) >= 2);
- h.hdr.mOtherFileID = hton64(2345); // don't worry about endianness
- h.e[0].mEncodedSize = hton64((ntoh64(h.e[0].mEncodedSize)) + (ntoh64(h.e[1].mEncodedSize)));
- h.e[1].mOtherBlockIndex = hton64(-2);
+ TEST_THAT(box_ntoh64(h.hdr.mOtherFileID) == 0);
+ TEST_THAT(box_ntoh64(h.hdr.mNumBlocks) >= 2);
+ h.hdr.mOtherFileID = box_hton64(2345); // don't worry about endianness
+ h.e[0].mEncodedSize = box_hton64((box_ntoh64(h.e[0].mEncodedSize)) + (box_ntoh64(h.e[1].mEncodedSize)));
+ h.e[1].mOtherBlockIndex = box_hton64(static_cast<uint64_t>(-2));
// Write to modified file
f.Write(&h, sizeof(h));
// Commit new version