about summary refs log tree commit diff stats
path: root/src/elfs/elfloader.c
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2024-01-18 18:57:20 +0100
committerGitHub <noreply@github.com>2024-01-18 18:57:20 +0100
commit3a2073f78586e9456452485d89e0531607e5d2f4 (patch)
tree9ad61114022ef1c85a5fb50c3a02f863697a6a32 /src/elfs/elfloader.c
parente963d99d5ee85342e320efe1be8fcde39d3f1a32 (diff)
downloadbox64-3a2073f78586e9456452485d89e0531607e5d2f4.tar.gz
box64-3a2073f78586e9456452485d89e0531607e5d2f4.zip
Fixes (#1207)
* Fixed signed/unsigned issues and other cosmetics

* [WRAPPERS] Fixed missing `return`s in `my_` functions

* [EMU] More fixes

* [STEAM] Forgot one cleanup

* [WRAPPER] Fixed wrappedpulse callback signatures
Diffstat (limited to 'src/elfs/elfloader.c')
-rw-r--r--src/elfs/elfloader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c
index 39c83abc..58725968 100644
--- a/src/elfs/elfloader.c
+++ b/src/elfs/elfloader.c
@@ -961,7 +961,7 @@ int RelocateElfPlt(lib_t *maplib, lib_t *local_maplib, int bindnow, elfheader_t*
                 return -1;
         }
         if(need_resolver) {
-            if(pltResolver==~0LL) {
+            if(pltResolver==(uintptr_t)-1) {
                 pltResolver = AddBridge(my_context->system, vFE, PltResolver, 0, "PltResolver");
             }
             if(head->pltgot) {
@@ -1216,7 +1216,7 @@ int LoadNeededLibs(elfheader_t* h, lib_t *maplib, int local, int bindnow, box64c
     DumpDynamicNeeded(h);
     int cnt = 0;
     // count the number of needed libs, and also grab soname
-    for (int i=0; i<h->numDynamic; ++i) {
+    for (size_t i=0; i<h->numDynamic; ++i) {
         if(h->Dynamic[i].d_tag==DT_NEEDED)
             ++cnt;
         if(h->Dynamic[i].d_tag==DT_SONAME)
@@ -1226,7 +1226,7 @@ int LoadNeededLibs(elfheader_t* h, lib_t *maplib, int local, int bindnow, box64c
     if(h == my_context->elfs[0])
         my_context->neededlibs = h->needed;
     int j=0;
-    for (int i=0; i<h->numDynamic; ++i)
+    for (size_t i=0; i<h->numDynamic; ++i)
         if(h->Dynamic[i].d_tag==DT_NEEDED)
             h->needed->names[j++] = h->DynStrTab+h->delta+h->Dynamic[i].d_un.d_val;