Oracle® Solaris Studio 12.4: C User's Guide

Exit Print View

Updated: March 2015
 
 

7.3.6 Unions

Be sure to check unions because their fields can change size between the ILP32 and the LP64 data-type models. Consider the following example:

typedef union {
   double _d;
   long _l[2];
} llx_t;

The modified version is:

typedef union {
   double _d;
   int _l[2];
} llx_t;