This commit is contained in:
Nekotekina 2017-01-31 20:37:02 +03:00
parent 213527ca71
commit b7a7a5c582
2 changed files with 3 additions and 3 deletions

View File

@ -154,12 +154,12 @@ namespace fmt
#ifdef _WIN32 #ifdef _WIN32
if (DWORD error = GetLastError()) if (DWORD error = GetLastError())
{ {
fmt::append(out, " (e%#x)", error); fmt::append(out, " (e=%#x)", error);
} }
#else #else
if (int error = errno) if (int error = errno)
{ {
fmt::append(out, " (e%d)", error); fmt::append(out, " (e=%d)", error);
} }
#endif #endif

View File

@ -1937,7 +1937,7 @@ void thread_ctrl::start(const std::shared_ptr<thread_ctrl>& ctrl, task_stack tas
verify("thread_ctrl::start" HERE), thread != 0; verify("thread_ctrl::start" HERE), thread != 0;
#else #else
pthread_t thread; pthread_t thread;
verify("thread_ctrl::start" HERE), pthread_create(&thread, nullptr, entry, ctrl.get()); verify("thread_ctrl::start" HERE), pthread_create(&thread, nullptr, entry, ctrl.get()) == 0;
#endif #endif
// TODO: this is unsafe and must be duplicated in thread_ctrl::initialize // TODO: this is unsafe and must be duplicated in thread_ctrl::initialize