From 7c6f36026f0c7850704aefc29587886be425e579 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Sun, 18 Dec 2005 16:08:49 +0000 Subject: [PATCH] avoid overflows in UCHAR lhb_version --- src/lock/lock.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lock/lock.h b/src/lock/lock.h index 88774a2420..dc77e67fa0 100644 --- a/src/lock/lock.h +++ b/src/lock/lock.h @@ -124,18 +124,18 @@ const UCHAR type_own = 8; const UCHAR type_MAX = type_own; #if SIZEOF_VOID_P == 8 -const int PLATFORM_LHB_VERSION = 200; // 64-bit target +const UCHAR PLATFORM_LHB_VERSION = 128; // 64-bit target #else -const int PLATFORM_LHB_VERSION = 0; // 32-bit target +const UCHAR PLATFORM_LHB_VERSION = 0; // 32-bit target #endif -const int CLASSIC_LHB_VERSION = PLATFORM_LHB_VERSION + 16; // Firebird 2.0 -const int SS_LHB_VERSION = CLASSIC_LHB_VERSION + 100; +const UCHAR CLASSIC_LHB_VERSION = PLATFORM_LHB_VERSION + 16; // Firebird 2.0 +const UCHAR SS_LHB_VERSION = CLASSIC_LHB_VERSION + 100; #ifdef SUPERSERVER -const int LHB_VERSION = SS_LHB_VERSION; +const UCHAR LHB_VERSION = SS_LHB_VERSION; #else -const int LHB_VERSION = CLASSIC_LHB_VERSION; +const UCHAR LHB_VERSION = CLASSIC_LHB_VERSION; #endif const SLONG LHB_PATTERN = 123454321;