From: Zhang Han Date: Mon, 28 Dec 2020 07:11:28 +0000 (+0800) Subject: qobject: spaces required around that operators X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f3d71c6e8d1ce6445c38e2247938903c1f661154;p=qemu.git qobject: spaces required around that operators Add spaces around operators. Signed-off-by: Zhang Han Message-Id: <20201228071129.24563-4-zhanghan64@huawei.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- diff --git a/qobject/qdict.c b/qobject/qdict.c index d4d016ad69..6c15ed14c1 100644 --- a/qobject/qdict.c +++ b/qobject/qdict.c @@ -43,8 +43,8 @@ static unsigned int tdb_hash(const char *name) unsigned i; /* Used to cycle through random values. */ /* Set the initial value from the key size. */ - for (value = 0x238F13AF * strlen(name), i=0; name[i]; i++) - value = (value + (((const unsigned char *)name)[i] << (i*5 % 24))); + for (value = 0x238F13AF * strlen(name), i = 0; name[i]; i++) + value = (value + (((const unsigned char *)name)[i] << (i * 5 % 24))); return (1103515243 * value + 12345); }