8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00
This commit is contained in:
dimitr 2015-10-26 10:28:44 +00:00
parent f761965078
commit 769265ee1c
2 changed files with 2 additions and 2 deletions

View File

@ -868,7 +868,7 @@ AttNumber PAG_attachment_id(thread_db* tdbb)
header_page* header = (header_page*) CCH_FETCH(tdbb, &window, LCK_write, pag_header);
CCH_MARK(tdbb, &window);
const AttNumber att_id =
((SINT64) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id) + 1;
((AttNumber) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id) + 1;
attachment->att_attachment_id = att_id;
header->hdr_att_high = att_id >> BITS_PER_LONG;
header->hdr_attachment_id = (ULONG) (att_id & MAX_ULONG);

View File

@ -75,7 +75,7 @@ void PPG_print_header(const header_page* header, ULONG page,
uSvc->printf(false, "\tSequence number\t\t%d\n", header->hdr_sequence);
const AttNumber att_id =
(SINT64) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id;
(AttNumber) header->hdr_att_high << BITS_PER_LONG | header->hdr_attachment_id;
uSvc->printf(false, "\tNext attachment ID\t%"SQUADFORMAT"\n", att_id);
Firebird::DbImplementation imp(header);