[omniORB] Assertion failed at giopImpl12.cc line 1949

Duncan Grisby duncan at grisby.org
Tue Aug 31 17:33:59 BST 2004


On Tuesday 17 August, Alex Tingle wrote:

[...]
> Consider:  int x = -1;
> 
> (long)x is still -1, so all of the upper bits are set correctly.
> (unsigned long)x will have the upper 32-bits set to 0, so the result is
> wrong.
> 
> In any case, the cast should be to (ptr_arith_t). I've attached a patch.

I've checked in your patch. The signedness of int doesn't matter
because the alignment can only be 1, 2, 4 or 8, but the length of int
can cause a problem as you say.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list