[omniORB] Problems with doubles in a sequence of structs

Duncan Grisby duncan at grisby.org
Tue May 2 12:31:02 BST 2006


On Thursday 27 April, Corrado Santoro wrote:

[...]
> The strange thing is that, on each service that uses the struct
> SnapShot, the value of the field "analog_value" is shifted forward of
> one element; I mean, the value that I should find in
> "floor_data[0][x].analog_value" is instead found in
> "floor_data[0][x+1].analog_value". This does not happen in all the
> other fields.
> 
> The same problem occurs each time I have a float or double field in a
> sequence of structures.
> 
> I'm working with Debian Linux and omniORB version 4.0.6-2 (I've
> installed the package, so I've not compiled omniORB from scratch).

Try with 4.0.7, or better the current CVS snapshot. I suspect the
problem is to do with a strict type aliasing issue in 4.0.6.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list