aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/riscv/arith.h
diff options
context:
space:
mode:
authorNathaniel Filardo <nwf20@cl.cam.ac.uk>2021-06-15 00:18:36 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2021-09-07 12:06:44 +0000
commitd2c77ce6f332e2737af97523978d7ef676c20432 (patch)
tree7425cf506c06e3288d1d2b251473d6d04dd6487f /lib/libc/riscv/arith.h
parent4a6bf977ac3e309c2213e15e17630b0aabb49949 (diff)
downloadsrc-d2c77ce6f332e2737af97523978d7ef676c20432.tar.gz
src-d2c77ce6f332e2737af97523978d7ef676c20432.zip
makefs: Cast daddr_t to off_t before multiplication
Apparently some large-file systems out there, such as my powerpc64le Linux box, define daddr_t as a 32-bit type, which is sad and stymies cross-building disk images. Cast daddr_t to off_t before doing arithmetic that overflows. Reviewed by: arichardson, jrtc27, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27458 (cherry picked from commit 7ef082733bf8989797b71025ba6d597a7d17d92b)
Diffstat (limited to 'lib/libc/riscv/arith.h')
0 files changed, 0 insertions, 0 deletions