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)
1529
1529
// system_call_failed::raise("QueryDosDevice");
1530
1530
return false ;
1531
1531
1532
- ntLen = strlen (ntDevice);
1532
+ ntLen = static_cast <DWORD>( strlen (ntDevice) );
1533
1533
1534
1534
if (ntLen <= mapLen &&
1535
1535
_memicmp (ntDevice, mapName, ntLen) == 0 &&
@@ -2095,11 +2095,11 @@ void SharedMemoryBase::unmapObject(CheckStatusWrapper* statusVector,
2095
2095
2096
2096
#ifdef WIN_NT
2097
2097
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" ;
2100
2100
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 ;
2103
2103
2104
2104
static SLONG pid = 0 ;
2105
2105
You can’t perform that action at this time.
0 commit comments