Core&Tools: Fix multiple issues found by a static code coverage tool

This commit is contained in:
Nay
2013-08-26 02:00:18 +01:00
parent a4fcbd1a36
commit 8eaf763235
10 changed files with 20 additions and 17 deletions
+4 -4
View File
@@ -59,10 +59,10 @@ ThreadPriority::ThreadPriority()
}
}
//since we have only 7(seven) values in enum Priority
//and 3 we know already (Idle, Normal, Realtime) so
//we need to split each list [Idle...Normal] and [Normal...Realtime]
//into piecies
// since we have only 7(seven) values in enum Priority
// and 3 we know already (Idle, Normal, Realtime) so
// we need to split each list [Idle...Normal] and [Normal...Realtime]
// into pieces
const size_t _divider = 4;
size_t _div = (norm_pos - min_pos) / _divider;
if (_div == 0)