diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2015-11-25 00:50:53 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2015-11-25 00:50:59 +0300 |
commit | 5f79a3e4e97c926188c37f2b8371fb5d3c5b6b16 (patch) | |
tree | df7d8b0cfdf38838881c0724de1eda05655c7ce1 | |
parent | 150d0966bbeef1ee2a59aacb7934e73042e2ea66 (diff) |
overlay: fix a few MSVC signed/unsigned conversion warnings.
-rw-r--r-- | overlay/lib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp index bf952cc00..537edb027 100644 --- a/overlay/lib.cpp +++ b/overlay/lib.cpp @@ -586,7 +586,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p) onwhitelist = true; break; } - pos += strlen(buffer + pos) + 1; + pos += static_cast<unsigned int>(strlen(buffer + pos)) + 1; } if (!onwhitelist) { @@ -602,7 +602,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p) bBlackListed = TRUE; return true; } - pos += strlen(buffer + pos) + 1; + pos += static_cast<unsigned int>(strlen(buffer + pos)) + 1; } } } else { @@ -641,7 +641,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p) // Same buffersize as procname; which we copy from. char fname[PROCNAMEFILEPATH_EXTENDED_BUFFER_BUFLEN]; - int pathlength = p - procname; + size_t pathlength = static_cast<size_t>(p - procname); p = fname + pathlength; strncpy_s(fname, sizeof(fname), procname, pathlength + 1); |