diff options
author | gumi <git@gumi.ca> | 2020-05-03 22:47:07 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-05-07 16:09:29 -0400 |
commit | 57fc65aa5a1e1abf81370dd8e6f879d3562446b9 (patch) | |
tree | abc98b69f40dfcf660ec0b2f5e3391535d7e3c50 /3rdparty/libconfig/grammar.c | |
parent | 79a92158c956c51b51777f37b545f94533fe9df6 (diff) | |
download | hercules-57fc65aa5a1e1abf81370dd8e6f879d3562446b9.tar.gz hercules-57fc65aa5a1e1abf81370dd8e6f879d3562446b9.tar.bz2 hercules-57fc65aa5a1e1abf81370dd8e6f879d3562446b9.tar.xz hercules-57fc65aa5a1e1abf81370dd8e6f879d3562446b9.zip |
libconfig: add support for number separators
Diffstat (limited to '3rdparty/libconfig/grammar.c')
-rw-r--r-- | 3rdparty/libconfig/grammar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/libconfig/grammar.c b/3rdparty/libconfig/grammar.c index da528ee20..0c3206d23 100644 --- a/3rdparty/libconfig/grammar.c +++ b/3rdparty/libconfig/grammar.c @@ -1578,7 +1578,7 @@ yyreduce: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, (yyvsp[0].ival)); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -1599,7 +1599,7 @@ yyreduce: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, (yyvsp[0].llval)); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -1620,7 +1620,7 @@ yyreduce: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int_elem(ctx->parent, -1, (yyvsp[0].ival)); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { @@ -1641,7 +1641,7 @@ yyreduce: if (IN_ARRAY() || IN_LIST()) { struct config_setting_t *e = config_setting_set_int64_elem(ctx->parent, -1, (yyvsp[0].llval)); - if (!e) { + if (e == NULL) { libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type); YYABORT; } else { |