ctf: Avoid passing a caddr_t to roundup2()

For some reason I can't reproduce this locally, but Jenkins complains.

Reported by:	Jenkins
Fixes:		bdf290cd3e ("ctf: Add v3 support to CTF tools, ctf{convert,dump,merge}")

(cherry picked from commit 3fe1f21fb3)
This commit is contained in:
Mark Johnston 2022-03-07 11:18:40 -05:00
parent d80faf878a
commit fb89cf93a5

View file

@ -1333,7 +1333,7 @@ resurrect_types(ctf_header_t *h, tdata_t *td, tdesc_t **tdarr, int tdsize,
tdp->t_fndef->fn_args[i] = tdarr[argid];
}
dptr = roundup2(dptr, 4);
dptr = (caddr_t) roundup2((uintptr_t) dptr, 4);
break;
case CTF_K_RESTRICT: