about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-28 10:28:41 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-28 10:28:41 +0100
commit32b0c173f0b919dadb9fe0add13ab1dd5f6fcb58 (patch)
tree820b77a53ed22e731339e350dc9a8e9dbc7c3ec9 /src
parent90167afc2bd1fd8072bd56ef0af541bb29cf89e9 (diff)
downloadbox64-32b0c173f0b919dadb9fe0add13ab1dd5f6fcb58.tar.gz
box64-32b0c173f0b919dadb9fe0add13ab1dd5f6fcb58.zip
[ELFLOADER] Fixed another warning
Diffstat (limited to 'src')
-rw-r--r--src/elfs/elfhash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elfs/elfhash.c b/src/elfs/elfhash.c
index c64f6909..7c3b1138 100644
--- a/src/elfs/elfhash.c
+++ b/src/elfs/elfhash.c
@@ -187,9 +187,9 @@ static int SymbolMatch(elfheader_t* h, uint32_t i, int ver, const char* vername,
 uint32_t old_elf_hash(const char* name)
 {
     uint32_t h = 0, g;
-    for (unsigned char c = *name; c; c = *++name) {
+    for(unsigned char c = *name; c; c = *++name) {
         h = (h << 4) + c;
-        if (g = (h & 0xf0000000)) {
+        if((g = (h & 0xf0000000))) {
             h ^= g >> 24;
         }
         h &= ~g;