From a5308e252d201b1bcfc8fdfbb49262460a19828c Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Thu, 31 Oct 2019 10:38:03 -0700 Subject: Don't cast away const Follow up to 511fce6b which missed a cast. Reviewed-by: Matt Ahrens Reviewed-by: Igor Kozhukhov Reviewed-by: Brian Behlendorf Signed-off-by: Matt Macy Closes #9533 --- include/sys/range_tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sys/range_tree.h') diff --git a/include/sys/range_tree.h b/include/sys/range_tree.h index 6e0025a2f..b0a9a1dad 100644 --- a/include/sys/range_tree.h +++ b/include/sys/range_tree.h @@ -168,7 +168,7 @@ rs_get_fill_raw(const range_seg_t *rs, const range_tree_t *rt) return (r64->rs_end - r64->rs_start); } case RANGE_SEG_GAP: - return (((range_seg_gap_t *)rs)->rs_fill); + return (((const range_seg_gap_t *)rs)->rs_fill); default: VERIFY(0); return (0); -- cgit v1.2.3