Skip to content

Commit

Permalink
fix(expr_validator.gd): 修正错误时返回值不合法
Browse files Browse the repository at this point in the history
原先 CharType get_char_type(ch: String) 当 ch 不合法时返回 -1,但 -1
不在 CharType 中。现修复为 CharType.CONST。
  • Loading branch information
cutekibry committed Feb 17, 2024
1 parent 0aec8db commit 8e0e901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/expr_validator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static func get_char_type(ch: String) -> CharType:
return CharType.VAR
else:
push_error("get_char_type(%s) is undefined" % ch)
return -1
return CharType.CONST


## 获取值等于 [param value] 的 [enum CharType] 名称。
Expand Down

0 comments on commit 8e0e901

Please sign in to comment.