1
0
Fork 0
forked from lthn/blockchain

fixed a typo

This commit is contained in:
sowle 2020-04-20 13:44:42 +03:00
parent 8403de3b91
commit 76b403b805
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -98,14 +98,14 @@ do { \
if (!ar.stream().good()) return false; \
} while (0);
#define DEFINE_SERIALIZATION_VERSION(v) inline static uint32_t get_serialization_veraion(){ return v; }
#define DEFINE_SERIALIZATION_VERSION(v) inline static uint32_t get_serialization_version() { return v; }
#define VERSION_ENTRY(f) \
do { \
ar.tag(#f); \
if (ar.is_saving_arch()) \
f = this->get_serialization_veraion(); \
f = this->get_serialization_version(); \
bool r = ::do_serialize(ar, f); \
if (!r || !ar.stream().good()) return false; \
} while (0);