app: fix cast bug.
When building (at least on 32-bit), fixes this warning: > app/widgets/gimpdashboard.c:3840:58: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Unsigned long long is specified in the C99 standard to be at least 64-bit. So it's normal that the compiler complains, as a cast from unsigned long long to a pointer has chances to go very wrong. Yet gimp_backtrace_get_frame_address() actually returns a guintptr which is type-compatible with gpointer so let's not give the compiler false information and just use this type. Then cast it to unsigned long long just for printing to dashboard log.
This commit is contained in:
parent
37065ccf6f
commit
8caef4ea0b
1 changed files with 2 additions and 2 deletions
|
|
@ -3828,14 +3828,14 @@ gimp_dashboard_log_sample (GimpDashboard *dashboard,
|
|||
|
||||
for (frame = n_head; frame < n_frames - n_tail; frame++)
|
||||
{
|
||||
unsigned long long address;
|
||||
guintptr address;
|
||||
|
||||
address = gimp_backtrace_get_frame_address (backtrace,
|
||||
thread, frame);
|
||||
|
||||
gimp_dashboard_log_printf (dashboard,
|
||||
"<frame address=\"0x%llx\" />\n",
|
||||
address);
|
||||
(unsigned long long) address);
|
||||
|
||||
g_hash_table_add (priv->log_addresses, (gpointer) address);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue