summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cytore.hpp6
-rw-r--r--MobileCydia.mm4
2 files changed, 5 insertions, 5 deletions
diff --git a/Cytore.hpp b/Cytore.hpp
index 168f2ef..714da26 100644
--- a/Cytore.hpp
+++ b/Cytore.hpp
@@ -50,7 +50,7 @@ struct Header {
uint32_t version_;
uint32_t size_;
uint32_t reserved_;
-};
+} _packed;
template <typename Target_>
class Offset {
@@ -80,11 +80,11 @@ class Offset {
bool IsNull() const {
return offset_ == 0;
}
-};
+} _packed;
struct Block {
Cytore::Offset<void> reserved_;
-};
+} _packed;
template <typename Type_>
static _finline Type_ Round(Type_ value, Type_ size) {
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 32c0244..fd225d1 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1420,14 +1420,14 @@ struct PackageValue :
char version_[8];
char name_[];
-};
+} _packed;
struct MetaValue :
Cytore::Block
{
uint32_t active_;
Cytore::Offset<PackageValue> packages_[1 << 16];
-};
+} _packed;
static Cytore::File<MetaValue> MetaFile_;
// }}}