Skip to content

Commit

Permalink
🎨 remove useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
froz42 committed Mar 28, 2023
1 parent e9b68a7 commit e875d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/srcs/backtrace/get_backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void process_addresses(void **backtrace_buffer, int backtrace_size)
// since it's already relative
// we just need to substract 1 to the address to
// get the right address
if (backtrace_buffer[i] < (void *)MAGIC_LIMIT_RELATIVE_ADDRESS)
if (backtrace_buffer[i] < MAGIC_LIMIT_RELATIVE_ADDRESS)
backtrace_buffer[i] = (void *)((size_t)backtrace_buffer[i] - 1);
else
{
Expand Down

0 comments on commit e875d79

Please sign in to comment.