取消了 i8* == i8* 实际使用 strcmp 的规则
This commit is contained in:
@@ -63,7 +63,7 @@ def strcmp(str1: str, str2: str) -> t.CInt:
|
||||
return str1[0] - str2[0]
|
||||
|
||||
def samestr(str1: str, str2: str) -> bool:
|
||||
return str1 == str2
|
||||
return strcmp(str1, str2) == 0
|
||||
|
||||
|
||||
# String compare function with limited length
|
||||
|
||||
Reference in New Issue
Block a user