[omniORB] It seem a bug in cdrStream::unmarshalBoolean()

=?GB2312?B?varOrA==?= sdjiangwei at gmail.com
Wed Jul 20 11:27:11 BST 2011


 --- cdrStream.h.orig 2009-05-07 00:16:18.000000000 +0800
+++ cdrStream.h 2011-07-20 10:19:11.134340242 +0800
@@ -356,9 +356,9 @@
_CORBA_Char c;
CdrUnMarshal((*this),_CORBA_Char,omni::ALIGN_1,c);
#ifdef HAS_Cplusplus_Bool
- return c ? true : false;
-#else
return c;
+#else
+ return c ? 1 : 0;
#endif
}





More information about the omniORB-list mailing list