summaryrefslogtreecommitdiffhomepage
path: root/asm/chunk.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-10-18 19:59:29 +0200
committerRoland Reichwein <mail@reichwein.it>2020-10-18 19:59:29 +0200
commit0cb5824977dbff51fa7b77c20279b6bd4cb49d78 (patch)
tree80af90f2bfda5a6e2c24e08a01b72a3a6b9bef13 /asm/chunk.h
parentfe722b9304052b7a0a67fe01633c24ba5b4cdafa (diff)
Implemented optimize()
Diffstat (limited to 'asm/chunk.h')
-rw-r--r--asm/chunk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/asm/chunk.h b/asm/chunk.h
index 43cf54e..fb3f303 100644
--- a/asm/chunk.h
+++ b/asm/chunk.h
@@ -25,12 +25,12 @@ struct AddressFeature
bool relativeAddressing{true};
std::vector<uint8_t> machine_code;
- size_t addr_size;
- size_t addr_offs; ///< offset inside code
+ size_t addr_size{0};
+ size_t addr_offs{0}; ///< offset inside code
std::vector<uint8_t> alternative_code;
- size_t alternative_size;
- size_t alternative_offs; ///< offset inside code
+ size_t alternative_size{0};
+ size_t alternative_offs{0}; ///< offset inside code
};
class Label: public Chunk