Skip to content

Commit 6cbd14c

Browse files
committed
Add comment
1 parent 2bea204 commit 6cbd14c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libfuncs/bounded_int.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ fn build_is_zero<'ctx, 'this>(
807807
);
808808

809809
let k0 = if src_ty.is_bounded_int(registry)? {
810+
// We can do the substraction since the lower bound of the bounded int will
811+
// always be less or equal than 0.
810812
entry.const_int_from_type(context, location, 0 - src_range.lower, src_value.r#type())?
811813
} else {
812814
entry.const_int_from_type(context, location, 0, src_value.r#type())?

0 commit comments

Comments
 (0)