diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-02-28 10:27:36 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-02-28 10:27:36 +0100 |
| commit | 90167afc2bd1fd8072bd56ef0af541bb29cf89e9 (patch) | |
| tree | bca8dbae5847dc0238f287ef09e0fedb986af6e9 | |
| parent | 6a4a58185e3f3d62aea51211e6a3d98dafe318b2 (diff) | |
| download | box64-90167afc2bd1fd8072bd56ef0af541bb29cf89e9.tar.gz box64-90167afc2bd1fd8072bd56ef0af541bb29cf89e9.zip | |
[ELFLOADER] Fixed a warning
| -rw-r--r-- | src/elfs/elfhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfs/elfhash.c b/src/elfs/elfhash.c index 6c602617..c64f6909 100644 --- a/src/elfs/elfhash.c +++ b/src/elfs/elfhash.c @@ -189,7 +189,7 @@ uint32_t old_elf_hash(const char* name) uint32_t h = 0, g; 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; |