]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
another compilation fix PCH-less build
[wxWidgets.git] / src / unix / threadpsx.cpp
index 5d7c3bcd2aba900fe340779a8f24c01d63907ba9..850543d345fe7f52f53103ca647958ec7e21d502 100644 (file)
@@ -1311,7 +1311,7 @@ void wxThread::SetPriority(unsigned int prio)
 
             // map wx priorites WXTHREAD_MIN_PRIORITY..WXTHREAD_MAX_PRIORITY
             // to Unix priorities 20..-20
-            if ( setpriority(PRIO_PROCESS, 0, -(2*prio)/5 + 20) == -1 )
+            if ( setpriority(PRIO_PROCESS, 0, -(2*(int)prio)/5 + 20) == -1 )
             {
                 wxLogError(_("Failed to set thread priority %d."), prio);
             }