fusefs: fix an alignment issue in the tests on arm

Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Alan Somers 2019-05-27 21:51:43 +00:00
parent bda39894c5
commit b7774b82cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=348314

View File

@ -333,7 +333,7 @@ void FuseTest::expect_readdir(uint64_t ino, uint64_t off,
}
out.header.len += entsize;
fde = (struct fuse_dirent*)
((long*)fde + entsize / sizeof(long));
((intmax_t*)fde + entsize / sizeof(intmax_t));
i++;
}
out.header.len += sizeof(out.header);