summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-08-05 15:32:15 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-05 15:35:15 +0200
commitede2db5f1b2bd8707c0cbb8a3024cf1a416863bb (patch)
treea602490b5dd444edd6697dba171f4e79eaf33719 /src/lib/eolian
parentce44122f61f44af0e68901868b4cf0511ec36659 (diff)
eolian: attempt to silence coverity overlapping assignment errors
While the previous code was I believe correct, coverity still complains about it. Split it into two statements also to declare intent. CID 1402603..1402724
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/database_expr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eolian/database_expr.c b/src/lib/eolian/database_expr.c
index 14af0cfb08..c2b6030db1 100644
--- a/src/lib/eolian/database_expr.c
+++ b/src/lib/eolian/database_expr.c
@@ -120,8 +120,11 @@ static Eina_Bool
120promote(Eolian_Expression *a, Eolian_Expression *b) 120promote(Eolian_Expression *a, Eolian_Expression *b)
121{ 121{
122#define CONVERT_CASE(id, dtp, expr, field, fnm) \ 122#define CONVERT_CASE(id, dtp, expr, field, fnm) \
123 case EOLIAN_EXPR_##id: \ 123 case EOLIAN_EXPR_##id: { \
124 expr->value.field = (dtp)(expr->value.fnm); break; 124 dtp nv = (dtp)(expr->value.fnm); \
125 expr->value.field = nv; \
126 break; \
127 }
125 128
126#define CONVERT(dtp, expr, field) \ 129#define CONVERT(dtp, expr, field) \
127 switch (expr->type) \ 130 switch (expr->type) \