mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-03 10:00:56 +00:00
[qwaq] Ensure qwaq_event_t's when is aligned
While qfcc will always align double values to 8 bytes (really, two global words) regardless of the underlying hardware, gcc does not: doubles are only 4-byte aligned on 32-bit hardware. This fixes the invalid debug target handle when running on i686.
This commit is contained in:
parent
0293167bd2
commit
73cffe283a
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ typedef union qwaq_message_s {
|
||||||
|
|
||||||
typedef struct qwaq_event_s {
|
typedef struct qwaq_event_s {
|
||||||
int what;
|
int what;
|
||||||
|
int __pad;
|
||||||
double when; // NOTE: 1<<32 based
|
double when; // NOTE: 1<<32 based
|
||||||
union {
|
union {
|
||||||
qwaq_kevent_t key;
|
qwaq_kevent_t key;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue