Correcting logic error
This commit is contained in:
parent
0b46382a56
commit
aacb2f8db2
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ template = """
|
|||
|
||||
|
||||
def genstub(syscall: str):
|
||||
if not 3 >= len(syscall) <= 15:
|
||||
raise ValueError("Syscall {} is too short/long!".format(syscall[:35]))
|
||||
if not 3 <= len(syscall) <= 15:
|
||||
raise ValueError("Syscall {name} is too short/long!".format(name=syscall[:35]))
|
||||
|
||||
return template.format(name=syscall)
|
||||
|
||||
|
|
Loading…
Reference in a new issue