请确保对联合类型进行检查,因为其字段的长度在 ILP32 和 LP64 数据类型模型之间可能会发生变化。例如,
typedef union { double _d; long _l[2]; } llx_t;
应当为:
typedef union { double _d; int _l[2]; } llx_t;