diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-06-07 11:31:06 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-06-07 11:31:06 +0100 |
commit | 68db85cbafb8495705f943453845c51e37eebfe9 (patch) | |
tree | e88b95e155fc4a0880b160aa5d1cb408ce571c2c /telepathy-glib/intset.c | |
parent | 9c807e9968cb5f28c53a59086afb32cfb6644e86 (diff) | |
download | telepathy-glib-68db85cbafb8495705f943453845c51e37eebfe9.tar.gz |
Use G_STATIC_ASSERT instead of tp_verify()
Diffstat (limited to 'telepathy-glib/intset.c')
-rw-r--r-- | telepathy-glib/intset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/telepathy-glib/intset.c b/telepathy-glib/intset.c index 502ac3482..baa995e86 100644 --- a/telepathy-glib/intset.c +++ b/telepathy-glib/intset.c @@ -50,8 +50,8 @@ # define BITFIELD_LOG2_BITS 5 #endif -tp_verify (1 << BITFIELD_LOG2_BITS == BITFIELD_BITS); -tp_verify (sizeof (gpointer) >= sizeof (gsize)); +G_STATIC_ASSERT (1 << BITFIELD_LOG2_BITS == BITFIELD_BITS); +G_STATIC_ASSERT (sizeof (gpointer) >= sizeof (gsize)); #define LOW_MASK (BITFIELD_BITS - 1) #define HIGH_PART(x) (x & ~LOW_MASK) #define LOW_PART(x) (x & LOW_MASK) @@ -450,7 +450,7 @@ tp_intset_from_array (const GArray *array) } /* these magic numbers would need adjusting for 64-bit storage */ -tp_verify (BITFIELD_BITS == 32); +G_STATIC_ASSERT (BITFIELD_BITS == 32); static inline guint count_bits32 (guint32 n) @@ -845,7 +845,7 @@ typedef struct { gsize bitfield; } RealFastIter; -tp_verify (sizeof (TpIntSetFastIter) >= sizeof (RealFastIter)); +G_STATIC_ASSERT (sizeof (TpIntSetFastIter) >= sizeof (RealFastIter)); /** * tp_intset_fast_iter_init: |