fix(narrow): 清理注解式整数窄化(Converter/TypeGenCType/CallGenLeafKit/ClassGenEnum)
CDefine 查询返回 int64 处按下游用法定型:回传给 int 的用显式 int(...),流入 int64 目标的加宽为 int64;sizet 数组元素赋给 int 的用 int(...)
This commit is contained in:
1 parent
966fc3b8f5
commit
3c0d3d13b5
4 files changed
+7
-7
No files matched your search
@@ -38,7 +38,7 @@ def _eval_binop_valid(node: ast.AST*) -> int:
|
||||
nm: ast.Name* = ast.Name*(node)
|
||||
if nm.id is not None:
|
||||
# Look up in the local CDefine table
|
||||
val: int = _lookup_cdefine_for_pyi(nm.id)
|
||||
val: int64 = _lookup_cdefine_for_pyi(nm.id)
|
||||
if _pyi_cdefine_found() != 0: return 1
|
||||
return 0
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user