Skip to content

Commit 73fefff

Browse files
committed
OVAL/probes: Explicitly cast const operator to avoid implicit upcast
It might be a minor problem, but it's better to have operations width under control in such bit-wise juggling.
1 parent dd9160f commit 73fefff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/SEAP/sexp-value.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ uintptr_t SEXP_rawval_lblk_copy (uintptr_t lblkp, uint16_t n_skip)
489489
/*
490490
* copy list items
491491
*/
492-
while (off_n < (1 << cur_sz) && off_o < lb_old->real) {
492+
while (off_n < ((uint16_t)1 << cur_sz) && off_o < lb_old->real) {
493493
lb_new->memb[off_n].s_valp = SEXP_rawval_incref (lb_old->memb[off_o].s_valp);
494494
lb_new->memb[off_n].s_type = lb_old->memb[off_o].s_type;
495495
#if !defined(NDEBUG) || defined(VALIDATE_SEXP)

0 commit comments

Comments
 (0)