diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:14 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:14 +0000 |
commit | 53265afff0dd5ba32642c444583e7d2bb25ca2e9 (patch) | |
tree | 62c6dca85a7f7ec8c3adb959c8d512cb140b705a /runtime/src/kmp_stub.cpp | |
parent | 1756886afc900127720de68088f9adff3108ef61 (diff) |
Notes
Diffstat (limited to 'runtime/src/kmp_stub.cpp')
-rw-r--r-- | runtime/src/kmp_stub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/kmp_stub.cpp b/runtime/src/kmp_stub.cpp index badbbde7c967b..6b5041988d5c3 100644 --- a/runtime/src/kmp_stub.cpp +++ b/runtime/src/kmp_stub.cpp @@ -164,7 +164,7 @@ void *kmp_aligned_malloc(size_t sz, size_t a) { #if KMP_OS_WINDOWS res = _aligned_malloc(sz, a); #else - if (err = posix_memalign(&res, a, sz)) { + if ((err = posix_memalign(&res, a, sz))) { errno = err; // can be EINVAL or ENOMEM res = NULL; } @@ -277,7 +277,7 @@ void __kmps_get_schedule(kmp_sched_t *kind, int *modifier) { kmp_proc_bind_t __kmps_get_proc_bind(void) { i; - return 0; + return proc_bind_false; } // __kmps_get_proc_bind double __kmps_get_wtime(void) { |