Skip to content

Commit

Permalink
process: Fix non-portable pointer arithmetic
Browse files Browse the repository at this point in the history
MSVC doesn't support arithmetic on `void *`.
  • Loading branch information
oleavr committed Nov 28, 2023
1 parent 2429561 commit ea6f3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gum/gumprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ gum_process_get_main_module (void)
g_once_init_leave (&cached_result, GPOINTER_TO_SIZE (result) + 1);
}

return GSIZE_TO_POINTER (cached_result) - 1;
return GSIZE_TO_POINTER (cached_result - 1);
}

static void
Expand Down

0 comments on commit ea6f3b3

Please sign in to comment.