Cleaned up integer type usage in wpilibc (#92)

Replaced all unsigned types to signed and int32_t with int in wpilibc
This commit is contained in:
Tyler Veness
2016-09-06 00:01:45 -07:00
committed by Peter Johnson
parent ff93050b31
commit 0cd05d1a42
169 changed files with 914 additions and 943 deletions

View File

@@ -18,7 +18,7 @@
#define ERROR (-1)
#endif /* ERROR */
const uint32_t Task::kDefaultPriority;
const int Task::kDefaultPriority;
Task& Task::operator=(Task&& task) {
m_thread.swap(task.m_thread);
@@ -60,7 +60,7 @@ bool Task::Verify() {
*
* @return task priority or 0 if an error occured
*/
int32_t Task::GetPriority() {
int Task::GetPriority() {
int priority;
auto id = m_thread.native_handle();
if (HandleError(HAL_GetTaskPriority(&id, &priority)))
@@ -77,7 +77,7 @@ int32_t Task::GetPriority() {
* @param priority The priority at which the internal thread should run.
* @return true on success.
*/
bool Task::SetPriority(int32_t priority) {
bool Task::SetPriority(int priority) {
auto id = m_thread.native_handle();
return HandleError(HAL_SetTaskPriority(&id, priority));
}