Possible bug in header file

In Connect structure

    struct
        {
        UInt32          keepOriginal:1;
        UInt32          splitOnly:1;
        UInt32          direction:2;
        UInt32          depthMode:2;
        UInt32          local:1;
        UInt32          lockDepth:1;
        UInt32          smartFeatureProfile:2;     
        UInt32          reserved:23;
        T_Adouble       depth;
        } cut;

inside SmartSolidSettings I think there is an error, The bitfield total size is 33. I think it should be 32 (reserved size should be 22 and not 23). In v8i SS4 the same structure is defined as:

    struct
        {
#if !defined (BITFIELDS_REVERSED)
        UInt32          keepOriginal:1;
        UInt32          splitOnly:1;
        UInt32          direction:2;
        UInt32          depthMode:2;
        UInt32          local:1;
        UInt32          lockDepth:1;
        UInt32          reserved:24;
#else
        UInt32          reserved:24;
        UInt32          lockDepth:1;
        UInt32          local:1;
        UInt32          depthMode:2;
        UInt32          direction:2;
        UInt32          splitOnly:1;
        UInt32          keepOriginal:1;
#endif
        double          depth;
        } cut;

I suppose that this error should be corrected asap as it introduces an offset in this structure (and implicit in MS3DToolSettings & PersistentTcb structures)

Parents Reply Children
No Data