Skip to content

Commit fcab1bb

Browse files
committed
Apply comment
1 parent 6cbd14c commit fcab1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfuncs/bounded_int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ fn build_is_zero<'ctx, 'this>(
809809
let k0 = if src_ty.is_bounded_int(registry)? {
810810
// We can do the substraction since the lower bound of the bounded int will
811811
// always be less or equal than 0.
812-
entry.const_int_from_type(context, location, 0 - src_range.lower, src_value.r#type())?
812+
entry.const_int_from_type(context, location, -src_range.lower, src_value.r#type())?
813813
} else {
814814
entry.const_int_from_type(context, location, 0, src_value.r#type())?
815815
};

0 commit comments

Comments
 (0)