mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
kernel-symbol: fix alignment warning
Our pointer is always malloc() aligned, so we have a safe cast here.
This commit is contained in:
@ -198,7 +198,7 @@ sp_kernel_symbol_from_address (SpCaptureAddress address)
|
|||||||
if (address < first->address)
|
if (address < first->address)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return sp_kernel_symbol_lookup ((SpKernelSymbol *)kernel_symbols->data,
|
return sp_kernel_symbol_lookup ((SpKernelSymbol *)(gpointer)kernel_symbols->data,
|
||||||
address,
|
address,
|
||||||
0,
|
0,
|
||||||
kernel_symbols->len - 1);
|
kernel_symbols->len - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user