From 051921592369f00d8d7755c6bbe03581b8e21908 Mon Sep 17 00:00:00 2001 From: robocop Date: Thu, 20 Sep 2007 10:04:43 +0000 Subject: [PATCH] Fix CORE-1470. --- src/jrd/pag.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jrd/pag.cpp b/src/jrd/pag.cpp index 6d3edfa78b..35b49007e2 100644 --- a/src/jrd/pag.cpp +++ b/src/jrd/pag.cpp @@ -1590,9 +1590,7 @@ void PAG_init2(USHORT shadow_number) if ((shadow_number) && (!file->fil_min_page)) CCH_RELEASE(tdbb, &window); - for (const TEXT* p = reinterpret_cast(header->hdr_data); - *p != HDR_end; - p += 2 + p[1]) + for (const UCHAR* p = header->hdr_data; *p != HDR_end; p += 2 + p[1]) { switch (*p) { case HDR_file: @@ -1608,8 +1606,7 @@ void PAG_init2(USHORT shadow_number) case HDR_sweep_interval: // CVC: Let's copy it always. //if (!(dbb->dbb_flags & DBB_read_only)) - MOVE_FAST(p + 2, &dbb->dbb_sweep_interval, - sizeof(SLONG)); + MOVE_FAST(p + 2, &dbb->dbb_sweep_interval, sizeof(SLONG)); break; } }