aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-18 17:25:38 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-06-08 23:21:33 +0200
commit81c77eda27888a6b19e1dc36a816bad99ca37cb2 (patch)
tree4a0ab03e228e91a2041c7c4709cb69411822e31a
parent98b8df40014e46f257becdfe59cf4173bb8383c3 (diff)
downloadembedlog-81c77eda27888a6b19e1dc36a816bad99ca37cb2.tar.gz
embedlog-81c77eda27888a6b19e1dc36a816bad99ca37cb2.tar.bz2
embedlog-81c77eda27888a6b19e1dc36a816bad99ca37cb2.zip
tst/test-el-pbinary.c: fix operator precedence
if (flags & 0x04 != 0x04) is invalid, as 0x04 != 0x04 will be evaluated first. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--tst/test-el-pbinary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tst/test-el-pbinary.c b/tst/test-el-pbinary.c
index f834dfe..3e4ab10 100644
--- a/tst/test-el-pbinary.c
+++ b/tst/test-el-pbinary.c
@@ -188,7 +188,7 @@ static int pbinary_check(void)
* have to trust the size
*/
- if (flags & 0x01 != 0x01)
+ if ((flags & 0x01) != 0x01)
{
/*
* expected timestamp flag to be set
@@ -223,7 +223,7 @@ static int pbinary_check(void)
goto error;
}
- if (flags & 0x04 != 0x04)
+ if ((flags & 0x04) != 0x04)
{
/*
* usec not set, and should be