savio pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1a6013e9592720cd9aeb4724c8c3df2654da82b0
commit 1a6013e9592720cd9aeb4724c8c3df2654da82b0 Author: Savio Sena <sa...@expertisesolutions.com.br> Date: Fri Oct 3 15:04:27 2014 -0300 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 bb3b6a4..e7a7a3e 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<Eina_Bool*>(x); } --