[omniORB] I think cdrStream::unmarshalArrayBoolean() is incorrect
JiangWei
sdjiangwei at gmail.com
Wed Jul 20 12:25:22 BST 2011
--- cdrStream.h.orig 2009-05-07 00:16:18.000000000 +0800
+++ cdrStream.h 2011-07-20 10:59:32.527328368 +0800
@@ -808,11 +808,11 @@
}
inline void
unmarshalArrayBoolean(_CORBA_Boolean* a, int length)
{
-#if !defined(HAS_Cplusplus_Bool) || (SIZEOF_BOOL == 1)
+#if !defined(HAS_Cplusplus_Bool) && (SIZEOF_BOOL == 1)
get_octet_array((_CORBA_Char*)a, length, omni::ALIGN_1);
#else
for( int i = 0; i < length; i++ )
a[i] = unmarshalBoolean();
#endif
More information about the omniORB-list
mailing list