diff --git a/repos/dde_rump/src/lib/rump/bootstrap.cc b/repos/dde_rump/src/lib/rump/bootstrap.cc index 5c706fe6f..fe22ec966 100644 --- a/repos/dde_rump/src/lib/rump/bootstrap.cc +++ b/repos/dde_rump/src/lib/rump/bootstrap.cc @@ -158,7 +158,7 @@ struct Sym_tab if (sym->st_shndx == SHN_UNDEF || !sym->st_value) continue; - char const *name = (char const *)sym->st_name + str_tab; + char const *name = (char const *)(sym->st_name + str_tab); if (!is_wanted(name)) continue; @@ -166,7 +166,7 @@ struct Sym_tab /* set absolute value */ sym_tab[out_cnt].st_value += map->l_addr; if (verbose) - PDBG("Read symbol %s val: %x", name, sym_tab[out_cnt].st_value); + PDBG("Read symbol %s val: %zx", name, sym_tab[out_cnt].st_value); out_cnt++; } } diff --git a/repos/dde_rump/src/lib/rump/hypercall.cc b/repos/dde_rump/src/lib/rump/hypercall.cc index a75de708a..6f5d099ad 100644 --- a/repos/dde_rump/src/lib/rump/hypercall.cc +++ b/repos/dde_rump/src/lib/rump/hypercall.cc @@ -103,7 +103,7 @@ struct lwp * rumpuser_curlwp(void) int rumpuser_thread_create(func f, void *arg, const char *name, int mustjoin, int priority, int cpui_dx, void **cookie) { - static int count = 0; + static long count = 0; if (mustjoin) *cookie = (void *)++count;