Discussion:
[omniORB] It seem a bug in cdrStream::unmarshalBoolean()
姜维
2011-07-20 08:27:52 UTC
Permalink
--- 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
}

Loading...