aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authoronkrot <vob999@bk.ru>2015-01-10 11:05:42 +0000
committerCraig Robbins <kde.psych@gmail.com>2015-01-13 23:48:56 +1000
commit0fd1ee03808ee8121e7b65e5c7c9ba19599d185e (patch)
tree6ce75f294a94cfdcb3dfaa45ef8f7510ca893074 /src/script
parent5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7 (diff)
downloadminetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.gz
minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.bz2
minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.zip
Performance fixes.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/cpp_api/s_async.cpp2
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());