diff options
author | onkrot <vob999@bk.ru> | 2015-01-10 11:05:42 +0000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-13 23:48:56 +1000 |
commit | 0fd1ee03808ee8121e7b65e5c7c9ba19599d185e (patch) | |
tree | 6ce75f294a94cfdcb3dfaa45ef8f7510ca893074 /src/script/cpp_api | |
parent | 5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7 (diff) | |
download | minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.gz minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.bz2 minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.zip |
Performance fixes.
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r-- | src/script/cpp_api/s_async.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_async.cpp b/src/script/cpp_api/s_async.cpp index ef84d5037..de1ebc07b 100644 --- a/src/script/cpp_api/s_async.cpp +++ b/src/script/cpp_api/s_async.cpp @@ -247,7 +247,7 @@ void* AsyncWorkerThread::Thread() // Register thread for error logging char number[21]; - snprintf(number, sizeof(number), "%d", threadnum); + snprintf(number, sizeof(number), "%u", threadnum); log_register_thread(std::string("AsyncWorkerThread_") + number); porting::setThreadName((std::string("AsyncWorkTh_") + number).c_str()); |