mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: fix a 32-bit cast warning
This commit is contained in:
@ -338,7 +338,7 @@ test_reader_basic (void)
|
||||
for (i = 0; i < 1000; i++)
|
||||
{
|
||||
SysprofCaptureAddress addr = ((SysprofCaptureAddress)i + 1L) | SYSPROF_CAPTURE_JITMAP_MARK;
|
||||
const gchar *mapped = g_hash_table_lookup (jmap, (gpointer)addr);
|
||||
const char *mapped = g_hash_table_lookup (jmap, (gpointer)(gsize)addr);
|
||||
gchar str[32];
|
||||
|
||||
g_snprintf (str, sizeof str, "jitstring-%d", i);
|
||||
|
||||
Reference in New Issue
Block a user