File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
21042104static SLONG pid = 0 ;
21052105
You can’t perform that action at this time.
0 commit comments