summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/Process.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index 16e4092e9f..62b6da0cb1 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -363,7 +363,7 @@ const char *Process::ResetColor() {
unsigned Process::GetRandomNumber() {
unsigned int result;
- const errno_t ec = rand_s(&result);
+ const int ec = rand_s(&result);
assert(ec == 0 && "rand_s failed");
return result;
}