Skip to content

Commit

Permalink
swift-api-resolver: Add missing constness casts
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Jan 8, 2024
1 parent 53bf303 commit bd9c557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gum/gumswiftapiresolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ gum_resolve_relative_indirect_ptr (const GumRelativeIndirectPtr * delta)

target = (gconstpointer *) ((const guint8 *) delta + val);

return gum_strip_code_pointer (*target);
return gum_strip_code_pointer ((gpointer) *target);
}

static gconstpointer
Expand All @@ -1463,7 +1463,7 @@ gum_resolve_relative_indirectable_ptr (const GumRelativeIndirectablePtr * delta)

target = (gconstpointer *) ((const guint8 *) delta + (val & ~1));

return gum_strip_code_pointer (*target);
return gum_strip_code_pointer ((gpointer) *target);
}

static gchar *
Expand Down

0 comments on commit bd9c557

Please sign in to comment.