summaryrefslogtreecommitdiff
path: root/src/analysis/scan/exprs
diff options
context:
space:
mode:
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 ? */