diff options
Diffstat (limited to '3rdparty/libconfig/extra/gen/grammar.y')
-rw-r--r-- | 3rdparty/libconfig/extra/gen/grammar.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/libconfig/extra/gen/grammar.y b/3rdparty/libconfig/extra/gen/grammar.y index a59fcc354..b02612435 100644 --- a/3rdparty/libconfig/extra/gen/grammar.y +++ b/3rdparty/libconfig/extra/gen/grammar.y @@ -315,7 +315,7 @@ simple_value: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, $1); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -332,7 +332,7 @@ simple_value: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, $1); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -349,7 +349,7 @@ simple_value: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, $1); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -366,7 +366,7 @@ simple_value: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, $1); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { |