mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
qobject: spaces required around that operators
Add spaces around operators. Signed-off-by: Zhang Han <zhanghan64@huawei.com> Message-Id: <20201228071129.24563-4-zhanghan64@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
be08fb1897
commit
f3d71c6e8d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue