Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and shenlebantongying committed Sep 25, 2024
1 parent 3b873cb commit 5fe8dd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct IdxHeader
uint32_t zipSupportVersion; // Zip support version -- narrows down reindexing
// when it changes only for dictionaries with the
// zip files
uint32_t dslEncoding; // Which encoding is used for the file indexed
uint32_t dslEncoding; // Which encoding is used for the file indexed
uint32_t chunksOffset; // The offset to chunks' storage
uint32_t hasAbrv; // Non-zero means file has abrvs at abrvAddress
uint32_t abrvAddress; // Address of abrv map in the chunked storage
Expand Down
2 changes: 1 addition & 1 deletion src/dict/epwing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct IdxHeader
quint32 nameSize;
quint32 langFrom; // Source language
quint32 langTo; // Target language
}
};
static_assert( alignof( IdxHeader ) == 1 );
#pragma pack( pop )

Expand Down
2 changes: 1 addition & 1 deletion src/dict/gls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ struct IdxHeader
uint32_t zipSupportVersion; // Zip support version -- narrows down reindexing
// when it changes only for dictionaries with the
// zip files
uint32_t glsEncoding; // Which encoding is used for the file indexed
uint32_t glsEncoding; // Which encoding is used for the file indexed
uint32_t chunksOffset; // The offset to chunks' storage
uint32_t indexBtreeMaxElements; // Two fields from IndexInfo
uint32_t indexRootOffset;
Expand Down
5 changes: 2 additions & 3 deletions src/dict/zim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,12 @@ DEF_EX( exUserAbort, "User abort", Dictionary::Ex )
using ZimFile = zim::Archive;



enum {
Signature = 0x584D495A, // ZIMX on little-endian, XMIZ on big-endian
CurrentFormatVersion = 4 + BtreeIndexing::FormatVersion + Folding::Version
};

#pragma pack( push, 1 )
#pragma pack( push, 1 )
struct IdxHeader
{
quint32 signature; // First comes the signature, ZIMX
Expand All @@ -89,7 +88,7 @@ struct IdxHeader
quint32 langTo; // Target language
};
static_assert( alignof( IdxHeader ) == 1 );
#pragma pack( pop )
#pragma pack( pop )

// Some supporting functions
bool indexIsOldOrBad( string const & indexFile )
Expand Down

0 comments on commit 5fe8dd0

Please sign in to comment.