aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcg/tcg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 1b8546729f..bca9a2c55e 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -71,7 +71,7 @@ typedef struct TCGRelocation {
} TCGRelocation;
typedef struct TCGLabel {
- int has_value;
+ long has_value; // long instead of int to enforce alignment
union {
tcg_target_ulong value;
TCGRelocation *first_reloc;
@@ -80,7 +80,7 @@ typedef struct TCGLabel {
typedef struct TCGPool {
struct TCGPool *next;
- int size;
+ long size; // long instead of int to enforce alignment
uint8_t data[0];
} TCGPool;