Skip to content

Commit 1e3291d

Browse files
Update bit_manipulation/sum_two_integers/__init__.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 999e9c6 commit 1e3291d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bit_manipulation/sum_two_integers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def integer_addition(a: int, b: int):
1717

1818
# We check if the result is greater than the maximum integer value
1919
# Return the result as is if result is not greater than max_int
20-
if a < max_int:
20+
if a <= max_int:
2121
return a
2222

2323
# If it is, then return the two's complement of the result

0 commit comments

Comments
 (0)