mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +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 {
|
||||
int what;
|
||||
int __pad;
|
||||
double when; // NOTE: 1<<32 based
|
||||
union {
|
||||
qwaq_kevent_t key;
|
||||
|
|
Loading…
Reference in a new issue