summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-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 16e4092e9fa..62b6da0cb1b 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;
}