From d19ab5ae307b5395e90c2eca02e83ad7b2468407 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 8 Oct 2008 03:30:44 +0000 Subject: [PATCH] rid "warning: cast from pointer to integer of different size" on 64-bit builds --- src/os/solaris/solaris_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index b75e76f4..ad856eb1 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -468,12 +468,12 @@ int sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist) /* merge times of logical processors */ ent = sigar_cache_get(chips, chip_id); if (ent->value) { - cpu = &cpulist->data[(int)ent->value-1]; + cpu = &cpulist->data[(long)ent->value-1]; } else { SIGAR_CPU_LIST_GROW(cpulist); cpu = &cpulist->data[cpulist->number++]; - ent->value = (void *)(int)cpulist->number; + ent->value = (void *)(long)cpulist->number; SIGAR_ZERO(cpu); if (is_debug) {