mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
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:
parent
a942a8f660
commit
f4d74e4df8
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,6 @@ typedef struct {
|
||||||
# define AC_MOVFLAGS(spr, a) ((spr)->hitag)
|
# define AC_MOVFLAGS(spr, a) ((spr)->hitag)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma pack(push,1)
|
|
||||||
// (+ 40 16 16 4 8 6 8 6 4 20)
|
// (+ 40 16 16 4 8 6 8 6 4 20)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code
|
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code
|
||||||
|
@ -193,6 +192,7 @@ typedef struct {
|
||||||
#endif
|
#endif
|
||||||
} actor_t;
|
} actor_t;
|
||||||
|
|
||||||
|
#pragma pack(push,1)
|
||||||
// this struct needs to match the beginning of actor_t above
|
// this struct needs to match the beginning of actor_t above
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code
|
int32_t t_data[10]; // 40b sometimes used to hold offsets to con code
|
||||||
|
|
|
@ -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
|
-- to make more 'const'), but still has array members exposed, so is unsuited
|
||||||
-- for external exposure.
|
-- for external exposure.
|
||||||
local ACTOR_STRUCT = [[
|
local ACTOR_STRUCT = [[
|
||||||
__attribute__((packed)) struct {
|
struct {
|
||||||
const int32_t t_data[10];
|
const int32_t t_data[10];
|
||||||
const struct move mv;
|
const struct move mv;
|
||||||
const struct action ac;
|
const struct action ac;
|
||||||
|
|
Loading…
Reference in a new issue