From 1a6013e9592720cd9aeb4724c8c3df2654da82b0 Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Fri, 3 Oct 2014 15:04:27 -0300 Subject: [PATCH] eo-cxx: Add static assert to check boolean size. --- src/bindings/eo_cxx/eo_cxx_interop.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bindings/eo_cxx/eo_cxx_interop.hh b/src/bindings/eo_cxx/eo_cxx_interop.hh index bb3b6a4141..e7a7a3ee4f 100644 --- a/src/bindings/eo_cxx/eo_cxx_interop.hh +++ b/src/bindings/eo_cxx/eo_cxx_interop.hh @@ -40,6 +40,7 @@ to_c(bool x) inline Eina_Bool* to_c(bool* x) { + static_assert(sizeof(bool) == sizeof(Eina_Bool), ""); return reinterpret_cast(x); }