docs: 修改注释

This commit is contained in:
zhangxun 2025-06-13 19:56:24 +08:00
parent 34d45c7878
commit cdc7dea410

View File

@ -67,7 +67,7 @@ public class BinaryExpressionAnalyzer implements ExpressionAnalyzer<BinaryExpres
Type wide = Type.widen(left, right); Type wide = Type.widen(left, right);
if (wide == null) wide = BuiltinType.INT; // 容错降级为 int if (wide == null) wide = BuiltinType.INT; // 容错降级为 int
// 若为比较运算符统一返回 int 类型作为布尔值表示 // 若为比较运算符统一返回 boolean 类型作为布尔值表示
if ("< <= > >= == !=".contains(op)) { if ("< <= > >= == !=".contains(op)) {
return BuiltinType.BOOLEAN; return BuiltinType.BOOLEAN;
} }