aboutsummaryrefslogtreecommitdiff
path: root/tests/libsqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 23:11:44 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 23:11:44 +0100
commit4dd955d2c1dac90e9c20b5a9ac1deb0fd489f9b8 (patch)
tree7cb5ad11a2e64195cb01726356b5390f8e37cca4 /tests/libsqfs
parent3d44d00ded5d038a0e5d90e53fba924de77a63f6 (diff)
Fix wrong byte-swap macro in libsqfs table test
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libsqfs')
-rw-r--r--tests/libsqfs/table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libsqfs/table.c b/tests/libsqfs/table.c
index a2cb846..0b1ab93 100644
--- a/tests/libsqfs/table.c
+++ b/tests/libsqfs/table.c
@@ -133,7 +133,7 @@ int main(void)
/* check the location list */
memcpy(locations, file_data + start, sizeof(locations));
for (i = 0; i < 4; ++i)
- locations[i] = le32toh(locations[i]);
+ locations[i] = le64toh(locations[i]);
TEST_EQUAL_UI(locations[0], 0);
TEST_EQUAL_UI(locations[1], (1 * (8192 + 2)));