summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/grammar.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-05-03 22:47:07 -0400
committergumi <git@gumi.ca>2020-05-07 16:09:29 -0400
commit57fc65aa5a1e1abf81370dd8e6f879d3562446b9 (patch)
treeabc98b69f40dfcf660ec0b2f5e3391535d7e3c50 /3rdparty/libconfig/grammar.c
parent79a92158c956c51b51777f37b545f94533fe9df6 (diff)
downloadhercules-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.c8
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 {