Skip to content

Commit 5fc7b1b

Browse files
committed
Fix conversion warning in isc_sync
+ constexpr
1 parent 9641916 commit 5fc7b1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/common/isc_sync.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ static bool getMappedFileName(void* addr, PathName& mappedName)
15291529
//system_call_failed::raise("QueryDosDevice");
15301530
return false;
15311531

1532-
ntLen = strlen(ntDevice);
1532+
ntLen = static_cast<DWORD>(strlen(ntDevice));
15331533

15341534
if (ntLen <= mapLen &&
15351535
_memicmp(ntDevice, mapName, ntLen) == 0 &&
@@ -2095,11 +2095,11 @@ void SharedMemoryBase::unmapObject(CheckStatusWrapper* statusVector,
20952095

20962096
#ifdef WIN_NT
20972097

2098-
static const LPCSTR FAST_MUTEX_EVT_NAME = "%s_FM_EVT";
2099-
static const LPCSTR FAST_MUTEX_MAP_NAME = "%s_FM_MAP";
2098+
static constexpr LPCSTR FAST_MUTEX_EVT_NAME = "%s_FM_EVT";
2099+
static constexpr LPCSTR FAST_MUTEX_MAP_NAME = "%s_FM_MAP";
21002100

2101-
static const int DEFAULT_INTERLOCKED_SPIN_COUNT = 0;
2102-
static const int DEFAULT_INTERLOCKED_SPIN_COUNT_SMP = 200;
2101+
static constexpr int DEFAULT_INTERLOCKED_SPIN_COUNT = 0;
2102+
static constexpr int DEFAULT_INTERLOCKED_SPIN_COUNT_SMP = 200;
21032103

21042104
static SLONG pid = 0;
21052105

0 commit comments

Comments
 (0)