[libFuzzer] Properly use unsigned for Process ID.
authorMarcos Pividori <mpividori@google.com>
Tue, 13 Dec 2016 17:45:44 +0000 (17:45 +0000)
committerMarcos Pividori <mpividori@google.com>
Tue, 13 Dec 2016 17:45:44 +0000 (17:45 +0000)
commit463f8bdd0b85ea19177ff5e22d2fca34859b2234
treea30dd1d19702a2442deb0a4b63b149b8a86e44fe
parentc59b692c85e0b75ffb3168c2dbec2a0280886c9b
[libFuzzer] Properly use unsigned for Process ID.

Use unsigned for PID instead of signed int. GetCurrentProcessId() returns
an unsigned (DWORD) so we must be sure we can deal with all possible values.
I use a long unsigned to be sure it can hold a 32 bit unsigned (DWORD).

Differential Revision: https://reviews.llvm.org/D27281

llvm-svn: 289558
llvm/lib/Fuzzer/FuzzerLoop.cpp
llvm/lib/Fuzzer/FuzzerUtil.h
llvm/lib/Fuzzer/FuzzerUtilPosix.cpp
llvm/lib/Fuzzer/FuzzerUtilWindows.cpp