Skip to content

Commit ecdf3dd

Browse files
committed
improve comments (constraint loader)
1 parent 7f4f39e commit ecdf3dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/init.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ validate_range_constraint(const Expr *expr,
810810
lower, upper, lower_null, upper_null);
811811
}
812812

813-
/* Validates a single expression of kind VAR >= CONST or VAR < CONST */
813+
/* Validates a single expression of kind VAR >= CONST | VAR < CONST */
814814
static bool
815815
validate_range_opexpr(const Expr *expr,
816816
const PartRelationInfo *prel,
@@ -870,8 +870,10 @@ validate_range_opexpr(const Expr *expr,
870870

871871
/*
872872
* Reads const value from expressions of kind:
873-
* 1) VAR >= CONST OR VAR < CONST
874-
* 2) RELABELTYPE(VAR) >= CONST OR RELABELTYPE(VAR) < CONST
873+
* 1) VAR >= CONST
874+
* 2) VAR < CONST
875+
* 3) RELABELTYPE(VAR) >= CONST
876+
* 4) RELABELTYPE(VAR) < CONST
875877
*/
876878
static bool
877879
read_opexpr_const(const OpExpr *opexpr,

0 commit comments

Comments
 (0)