const string -> constant string
This commit is contained in:
1 parent
a60058259d
commit
adc44312bf
1 file changed
+3
-3
@@ -6525,7 +6525,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6605,7 +6605,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7242,7 +7242,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
check_expr(c, &x, ce->args[1]);
|
check_expr(c, &x, ce->args[1]);
|
||||||
|
|
||||||
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
if (!is_type_string(x.type) || x.mode != Addressing_Constant || x.value.kind != ExactValue_String) {
|
||||||
error(ce->args[1], "Expected a const string for field argument");
|
error(ce->args[1], "Expected a constant string for field argument");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user