From 4dd955d2c1dac90e9c20b5a9ac1deb0fd489f9b8 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 6 Mar 2021 23:11:44 +0100 Subject: Fix wrong byte-swap macro in libsqfs table test Signed-off-by: David Oberhollenzer --- tests/libsqfs/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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))); -- cgit v1.2.3