[omniORB] 1 / 15 causes assertion failure in corbaFixed.cc line 222

Duncan Grisby duncan at grisby.org
Mon Jun 2 17:57:45 BST 2003


On Friday 30 May, Mike Mascari wrote:

> typedef fixed<16,4> Numeric
> 
> And the following C++ causes an assertion failure:
> 
> Numeric value, x, y;
> 
> x = 1;
> y = 15;
> value = x / y;

Thanks for reporting it. It's a silly bug in division that failed if
there are leading zeroes in the result. I've fixed it in CVS.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list