[gnome-builder/wip/clang-cache] egg-heap: fix alignment warning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/clang-cache] egg-heap: fix alignment warning
- Date: Wed, 13 May 2015 03:46:24 +0000 (UTC)
commit 26ba98a5d93c746c1793fed64030f17092d2ae08
Author: Christian Hergert <christian hergert me>
Date: Tue May 12 20:46:16 2015 -0700
egg-heap: fix alignment warning
We should probably posix_memalign the allocation in _new though.
contrib/egg/egg-heap.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-heap.h b/contrib/egg/egg-heap.h
index d9ae3b6..826fcc7 100644
--- a/contrib/egg/egg-heap.h
+++ b/contrib/egg/egg-heap.h
@@ -24,7 +24,7 @@
G_BEGIN_DECLS
#define egg_heap_insert_val(h,v) egg_heap_insert_vals(h,&(v),1)
-#define egg_heap_index(h,t,i) (((t*)(h)->data)[i])
+#define egg_heap_index(h,t,i) (((t*)(void*)(h)->data)[i])
#define egg_heap_peek(h,t) egg_heap_index(h,t,0)
typedef struct _EggHeap EggHeap;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]