Fix outstanding warning messages (#924)

This commit is contained in:
vldmr11080
2019-12-13 18:55:30 +01:00
committed by Enrico Giordani
parent 6e3587dd43
commit d284ecdab4
2 changed files with 2 additions and 2 deletions

View File

@@ -819,7 +819,7 @@ void FancyZones::HandleVirtualDesktopUpdates(HANDLE fancyZonesDestroyedEvent) no
const int guidSize = sizeof(GUID);
std::unordered_map<GUID, bool> temp;
temp.reserve(bufferCapacity / guidSize);
for (int i = 0; i < bufferCapacity; i += guidSize) {
for (size_t i = 0; i < bufferCapacity; i += guidSize) {
GUID *guid = reinterpret_cast<GUID*>(buffer.get() + i);
temp[*guid] = true;
}