Lose the 'packed' attribute on actor_t.

Its members are already laid out on the natural alignment boundaries.
Compilation tested with {32-bit, 64-bit} x {Lunatic, non-Lua} builds.

git-svn-id: https://svn.eduke32.com/eduke32@3968 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-07-19 12:49:08 +00:00
parent a942a8f660
commit f4d74e4df8
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,6 @@ typedef struct {
# define AC_MOVFLAGS(spr, a) ((spr)->hitag)
#endif
#pragma pack(push,1)
// (+ 40 16 16 4 8 6 8 6 4 20)
typedef struct {
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code
@ -193,6 +192,7 @@ typedef struct {
#endif
} actor_t;
#pragma pack(push,1)
// this struct needs to match the beginning of actor_t above
typedef struct {
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code

View File

@ -154,7 +154,7 @@ defs_c.bitint_new_struct_type("uint32_t", "UBit32")
-- to make more 'const'), but still has array members exposed, so is unsuited
-- for external exposure.
local ACTOR_STRUCT = [[
__attribute__((packed)) struct {
struct {
const int32_t t_data[10];
const struct move mv;
const struct action ac;