[omniORB] HPUX/PA-RISC 64-bits porting

Duncan Grisby duncan at grisby.org
Fri Apr 30 17:47:39 BST 2004


On Thursday 22 April, Andrew Novikov wrote:

> I figured out why this happens. The problem is caused by the wrong
> (IMHO) type of the omni::ptr_arith_t - it is signed. Considering that
> user address space on HP-UX is located near the upper border,
> ((omni::ptr_arith_t)conn)%connectionState::hashsize gives a negative
> offset. I attached a patch with the fix.

That makes sense. ptr_arith_t is signed because historically it was
occasionally used to hold negative offsets to be added to pointers.
There are no cases of that any more, so I'll change it to be unsigned.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list