Fix signature size constant
I should have paid more attention to sizeof of string literals.master
parent
6e6c7df9a3
commit
8e25e7a472
|
@ -10,7 +10,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define YDB_TABLE_FILE_SIGN "TBL!"
|
#define YDB_TABLE_FILE_SIGN "TBL!"
|
||||||
#define YDB_TABLE_FILE_SIGN_SIZE (sizeof(YDB_TABLE_FILE_SIGN))
|
#define YDB_TABLE_FILE_SIGN_SIZE (sizeof(YDB_TABLE_FILE_SIGN)-1)
|
||||||
#define YDB_TABLE_FILE_VER_MAJOR_SIZE (1)
|
#define YDB_TABLE_FILE_VER_MAJOR_SIZE (1)
|
||||||
#define YDB_TABLE_FILE_VER_MINOR_SIZE (1)
|
#define YDB_TABLE_FILE_VER_MINOR_SIZE (1)
|
||||||
#define YDB_TABLE_FILE_DATA_START_OFFSET (YDB_TABLE_FILE_SIGN_SIZE + YDB_TABLE_FILE_VER_MAJOR_SIZE + \
|
#define YDB_TABLE_FILE_DATA_START_OFFSET (YDB_TABLE_FILE_SIGN_SIZE + YDB_TABLE_FILE_VER_MAJOR_SIZE + \
|
||||||
|
|
Loading…
Reference in New Issue