Skip to content

Commit

Permalink
Fixed|libdeng: Use "uint32_t" instead of "uint"
Browse files Browse the repository at this point in the history
Todo for later: Fix the declaration of "uint" on Ubuntu.
  • Loading branch information
skyjake committed Jul 30, 2012
1 parent ef99fba commit 1631e53
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdeng/include/de/concurrency.h
Expand Up @@ -125,9 +125,9 @@ DENG_PUBLIC int Sys_WaitThread(thread_t handle, int timeoutMs, systhreadexitstat
* Can be @c NULL in which case the current thread is assumed.
* @return Identifier of the thread.
*/
DENG_PUBLIC uint Sys_ThreadId(thread_t handle);
DENG_PUBLIC uint32_t Sys_ThreadId(thread_t handle);

DENG_PUBLIC uint Sys_CurrentThreadId(void);
DENG_PUBLIC uint32_t Sys_CurrentThreadId(void);

DENG_PUBLIC boolean Sys_InMainThread(void);

Expand Down
4 changes: 2 additions & 2 deletions doomsday/libdeng/include/de/memoryzone.h
Expand Up @@ -113,7 +113,7 @@ DENG_PUBLIC void Z_ChangeTag2(void* ptr, int tag);
*/
DENG_PUBLIC void Z_ChangeUser(void* ptr, void* newUser);

DENG_PUBLIC uint Z_GetId(void* ptr);
DENG_PUBLIC uint32_t Z_GetId(void* ptr);

/**
* Get the user of a memory block.
Expand Down Expand Up @@ -154,7 +154,7 @@ typedef struct zblockset_s zblockset_t;
*
* @return Ptr to the newly created blockset.
*/
DENG_PUBLIC zblockset_t* ZBlockSet_New(size_t sizeOfElement, uint batchSize, int tag);
DENG_PUBLIC zblockset_t* ZBlockSet_New(size_t sizeOfElement, uint32_t batchSize, int tag);

/**
* Destroy the entire blockset.
Expand Down
6 changes: 3 additions & 3 deletions doomsday/libdeng/src/concurrency.cpp
Expand Up @@ -170,14 +170,14 @@ int Sys_WaitThread(thread_t handle, int timeoutMs, systhreadexitstatus_t* exitSt
return t->exitValue();
}

uint Sys_ThreadId(thread_t handle)
uint32_it Sys_ThreadId(thread_t handle)
{
QThread* t = reinterpret_cast<QThread*>(handle);
if(!t) t = QThread::currentThread();
return uint(PTR2INT(t));
return uint32_t(PTR2INT(t));
}

uint Sys_CurrentThreadId(void)
uint32_t Sys_CurrentThreadId(void)
{
return Sys_ThreadId(NULL /*this thread*/);
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng/src/memoryzone.c
Expand Up @@ -1103,7 +1103,7 @@ void* ZBlockSet_Allocate(zblockset_t* set)
return element;
}

zblockset_t* ZBlockSet_New(size_t sizeOfElement, unsigned int batchSize, int tag)
zblockset_t* ZBlockSet_New(size_t sizeOfElement, uint32_t batchSize, int tag)
{
zblockset_t* set;

Expand Down

0 comments on commit 1631e53

Please sign in to comment.