From fa84cf93b98d8a58775d4cfe05e6d15800366645 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 21 Jul 2016 12:52:30 +0200 Subject: [PATCH] 32-bit C compiler warning fixed --- EventMonitor/ETWLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventMonitor/ETWLog.cpp b/EventMonitor/ETWLog.cpp index 0e99392..b6aca8a 100644 --- a/EventMonitor/ETWLog.cpp +++ b/EventMonitor/ETWLog.cpp @@ -687,7 +687,7 @@ static tstring DataToString(_In_ USHORT InType, _In_ USHORT OutType, _In_count_( // on an 8-byte boundary, so its size is 8 bytes on a // 32-bit computer and 16 bytes on a 64-bit computer. // Doubling the pointer size handles both cases. - assert(nDataSize >= nPtrSize * 2); + assert(nDataSize >= (SIZE_T)nPtrSize * 2); return (PULONG)pData > 0 ? DataToString(TDH_INTYPE_SID, OutType, pData + nPtrSize * 2, nDataSize - nPtrSize * 2, pMapInfo, nPtrSize) : _T(""); case TDH_INTYPE_SID: {