[memprof: 27/76] process: Use gsize instead of guint and macros for type conversion
- From: Holger Hans Peter Freyther <hfreyther src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [memprof: 27/76] process: Use gsize instead of guint and macros for type conversion
- Date: Sun, 13 Jun 2010 03:40:29 +0000 (UTC)
commit 3f7bfc24230f3c732dfbf09586bfbd27f914125f
Author: Holger Hans Peter Freyther <zecke selfish org>
Date: Thu Jun 4 14:05:47 2009 +0200
process: Use gsize instead of guint and macros for type conversion
src/process.h | 2 +-
src/profile.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/process.h b/src/process.h
index 24e3793..49936f9 100644
--- a/src/process.h
+++ b/src/process.h
@@ -126,7 +126,7 @@ void process_dump_stack (MPProcess *process,
FILE *out,
StackNode *stack);
const char * process_locate_symbol (MPProcess *process,
- guint addr);
+ gsize addr);
char ** process_parse_exec (const char *exec_string);
char * process_find_exec (char **args);
diff --git a/src/profile.c b/src/profile.c
index 21dc62f..73d713b 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -56,7 +56,7 @@ profile_add_stack_trace (Profile *profile, GList *stack, guint size)
StackNode *element = list->data;
ProfileNode *match = NULL;
const char *symbol =
- process_locate_symbol (profile->process, (guint)element->address);
+ process_locate_symbol (profile->process, GPOINTER_TO_SIZE(element->address));
int i;
for (i = 0; i < roots->len; ++i)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]