From 7071877a17e2e6ece2ca8ab0cd3667f816ab89bb Mon Sep 17 00:00:00 2001 From: Clemens Lang Date: Sat, 18 Feb 2012 17:44:21 +0100 Subject: [PATCH] Suggest parantheses around assgnmnt used as truth value --- ykcore/ykcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index 2ad29d2..200b585 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -544,7 +544,7 @@ int yk_write_to_key(YK_KEY *yk, uint8_t slot, const void *buf, int bufcount) to speed up the transfer */ for (i = 0; i < (FEATURE_RPT_SIZE - 1); i++) { - if (repbuf[i] = *ptr++) all_zeros = 0; + if ((repbuf[i] = *ptr++)) all_zeros = 0; } if (all_zeros && (seq > 0) && (ptr < end)) continue; -- 2.39.5