GCC warns about the mismatched sizes on 32-bit platforms where
uintmax_t is larger in size than a pointer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
assuming that you know that these can never be truncated, and that truncation won't cause a problem.
Comment Actions
If you have an offset bigger than size_t, you don't have a valid pointer (or you've wrapped around anyway). In practice arg2 are fairly small values that are offsets of fields in structures.