summaryrefslogtreecommitdiff
path: root/src/analysis/scan/exprs
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-16 22:08:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-16 22:08:00 (GMT)
commit4f2fdc0f97f49b26772c2a466d22fdf84eb0f6d5 (patch)
tree4fd3c04091aaddfbe8347027bc6eb37c9f08d97a /src/analysis/scan/exprs
parent981b1d41a2102bcd7a432a81c9bd6979b8c6d6c4 (diff)
Improve the code and fix mistakes.
Diffstat (limited to 'src/analysis/scan/exprs')
-rw-r--r--src/analysis/scan/exprs/item.c4
-rw-r--r--src/analysis/scan/exprs/logical.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/analysis/scan/exprs/item.c b/src/analysis/scan/exprs/item.c
index b7cd970..a5a6fdf 100644
--- a/src/analysis/scan/exprs/item.c
+++ b/src/analysis/scan/exprs/item.c
@@ -308,6 +308,7 @@ static ScanReductionState g_scan_set_item_reduce(const GScanSetItem *expr, GScan
status = g_scan_expression_get_item(expr->set, val_s, ctx, out);
}
+
else if (vtype == LVT_UNSIGNED_INTEGER)
{
if (!g_scan_literal_expression_get_unsigned_integer_value(op_index, &val_u))
@@ -320,6 +321,9 @@ static ScanReductionState g_scan_set_item_reduce(const GScanSetItem *expr, GScan
}
+ else
+ status = false;
+
result = (status ? SRS_REDUCED : SRS_UNRESOLVABLE);
}
diff --git a/src/analysis/scan/exprs/logical.c b/src/analysis/scan/exprs/logical.c
index cc78a75..c61a44c 100644
--- a/src/analysis/scan/exprs/logical.c
+++ b/src/analysis/scan/exprs/logical.c
@@ -483,6 +483,11 @@ static ScanReductionState g_scan_logical_operation_reduce(const GScanLogicalOper
break;
+ /* Pour GCC... */
+ default:
+ result = SRS_UNRESOLVABLE;
+ break;
+
}
/* Mise à jour de la progression ? */