mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
Fix the build on 32-bit FreeBSD with GCC
GCC complains about casting a 64-bit integer to a 32-bit pointer. Originally committed downstream as https://github.com/freebsd/freebsd-src/commit/2d76470b701 Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Alan Somers <asomers@gmail.com> Sponsored by: ConnectWise Closes #17706
This commit is contained in:
parent
59f8f5dfe1
commit
a2424312c4
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,8 @@ gbh_nblkptrs(uint64_t size) {
|
|||
static inline zio_eck_t *
|
||||
gbh_eck(zio_gbh_phys_t *gbh, uint64_t size) {
|
||||
ASSERT(IS_P2ALIGNED(size, sizeof (blkptr_t)));
|
||||
return ((zio_eck_t *)((uintptr_t)gbh + size - sizeof (zio_eck_t)));
|
||||
return ((zio_eck_t *)((uintptr_t)gbh + (size_t)size -
|
||||
sizeof (zio_eck_t)));
|
||||
}
|
||||
|
||||
static inline blkptr_t *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue