[omniORB] omniORB4: problem marshaling boolean arrays/sequences

Duncan Grisby duncan@grisby.org
Tue Oct 15 15:53:00 2002


On Friday 11 October, omniorb@laurelnetworks.com wrote:

> <omniORB4/seqTemplatedefns.h> tells us that marshaling of
> _CORBA_Boolean sequences and arrays is handed off to cdrStream's
> put_octet_array() and get_octet_array() methods after coercing the
> _CORBA_Boolean* to _CORBA_Octet*.
> 
> This, of course, is only valid when _CORBA_Boolean and _CORBA_Octet are the
> same size.  But <omniORB4/CORBA_basetypes.h> says:

Have you encountered a machine where sizeof(bool) is not 1?  What was
it?

I have checked in a change that marshals using a for loop if the size
is > 1.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --