[cogl] renderer: assert CoglPrivateFeatureFlags fit in 32 bits



commit c6893fa3c9eda0f13b79d3a1fc03f8b79c42a8f6
Author: Robert Bragg <robert linux intel com>
Date:   Wed Jun 12 16:23:30 2013 +0100

    renderer: assert CoglPrivateFeatureFlags fit in 32 bits
    
    This updates the static assertion in cogl-renderer.c to only check that
    the flags will fit in 32 bits instead of asserting the type has the same
    size as an unsigned long.

 cogl/cogl-renderer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index d808382..252ba29 100644
--- a/cogl/cogl-renderer.c
+++ b/cogl/cogl-renderer.c
@@ -101,9 +101,9 @@ typedef struct _CoglDriverDescription
   const char *libgl_name;
 } CoglDriverDescription;
 
-_COGL_STATIC_ASSERT(sizeof (CoglPrivateFeatureFlags) ==
-                    sizeof (unsigned long),
-                    "Private feature flags don't fit in long");
+_COGL_STATIC_ASSERT(sizeof (CoglPrivateFeatureFlags) <=
+                    sizeof (uint32_t),
+                    "Private feature flags don't fit in 32 bits");
 
 static CoglDriverDescription _cogl_drivers[] =
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]