Skip to content

Commit

Permalink
Fix typo (thanks Gustavo)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Jun 12, 2024
1 parent c3a5fb2 commit 7b983e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/tools/mutator/mutators/LIR.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _mutate(self) -> Dict: # pylint: disable=too-many-branches
literal_replacements.append(variable.type.max) # append data type max value
if str(variable.type).startswith("uint"):
literal_replacements.append("1")
elif str(variable.type).startswith("uint"):
elif str(variable.type).startswith("int"):
literal_replacements.append("-1")
# Get the string
start = variable.source_mapping.start
Expand Down Expand Up @@ -63,7 +63,7 @@ def _mutate(self) -> Dict: # pylint: disable=too-many-branches
literal_replacements.append(variable.type.max)
if str(variable.type).startswith("uint"):
literal_replacements.append("1")
elif str(variable.type).startswith("uint"):
elif str(variable.type).startswith("int"):
literal_replacements.append("-1")
start = variable.source_mapping.start
stop = start + variable.source_mapping.length
Expand Down

0 comments on commit 7b983e3

Please sign in to comment.