diff options
| author | Martin Ridgers <[email protected]> | 2021-10-25 10:28:14 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-25 22:50:43 +0200 |
| commit | 52a1148259c76cec7b1d16d854dd32baf816b4ee (patch) | |
| tree | 25e178c33e24710c3fc190fbd45f9c8b2e178cfb /zencore/thread.cpp | |
| parent | Added a zen::GetCurrentThreadId() (diff) | |
| download | zen-52a1148259c76cec7b1d16d854dd32baf816b4ee.tar.xz zen-52a1148259c76cec7b1d16d854dd32baf816b4ee.zip | |
Cast to int() on the off chance that pid_t isn't one
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 2abdde067..4c89feac4 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -434,7 +434,7 @@ GetCurrentProcessId() #if ZEN_PLATFORM_WINDOWS return ::GetCurrentProcessId(); #else - return getpid(); + return int(getpid()); #endif } |