Use preprocessor for ENTRY_SERIALIZED_LENGTH

This commit is contained in:
Danny Willems 2020-05-15 19:50:46 +02:00
parent e465731e69
commit 332ce1a800
No known key found for this signature in database
GPG Key ID: 87E9243228C1E125
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@
#include <stdalign.h>
#endif
const int ENTRY_SERIALIZED_LENGTH = 180;
#define ENTRY_SERIALIZED_LENGTH 180
typedef struct HistoryEntry {
unsigned char bytes[ENTRY_SERIALIZED_LENGTH];
} HistoryEntry;