Skip to content

Commit ad4dc54

Browse files
Update src/libfuncs/bounded_int.rs
Co-authored-by: Gabriel Bosio <38794644+gabrielbosio@users.noreply.github.com>
1 parent 513e9d5 commit ad4dc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libfuncs/bounded_int.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ fn build_sub<'ctx, 'this>(
279279

280280
let compile_time_val =
281281
entry.const_int_from_type(context, location, compile_time_val, compute_ty)?;
282-
// First we do -> Ad - Bd = intermediate_res
282+
// First we do -> intermediate_res = Ad - Bd
283283
let res_value = entry.subi(lhs_value, rhs_value, location)?;
284-
// Then we do -> intermediate_res + (Ao - Bo - Co)
284+
// Then we do -> intermediate_res += (Ao - Bo - Co)
285285
let res_value = entry.addi(res_value, compile_time_val, location)?;
286286
// Get the result value on the desired range
287287
let res_value = if compute_width > dst_width {

0 commit comments

Comments
 (0)