mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 03:39:08 +00:00
Convert custom HeadSpin integer types to standard types from stdint.h
This commit is contained in:
@ -59,7 +59,7 @@ namespace pnUtilsExe {
|
||||
*
|
||||
***/
|
||||
|
||||
dword TimeGetTickCount ();
|
||||
uint32_t TimeGetTickCount ();
|
||||
|
||||
|
||||
} // namespace pnUtilsExe
|
||||
|
@ -59,7 +59,7 @@ namespace pnUtilsExe {
|
||||
***/
|
||||
|
||||
//============================================================================
|
||||
dword TimeGetTickCount () {
|
||||
uint32_t TimeGetTickCount () {
|
||||
return GetTickCount();
|
||||
}
|
||||
|
||||
|
@ -61,14 +61,14 @@ namespace pnUtilsExe {
|
||||
*
|
||||
***/
|
||||
|
||||
static dword s_adjustment;
|
||||
static uint32_t s_adjustment;
|
||||
|
||||
//===========================================================================
|
||||
static void InitializeAdjustment () {
|
||||
ASSERT(!s_adjustment);
|
||||
dword currTime = TimeGetTickCount();
|
||||
dword startBits = (currTime & 0x80) ? 0x7fff0000 : 0xffff0000;
|
||||
dword startMask = 0xffff0000;
|
||||
uint32_t currTime = TimeGetTickCount();
|
||||
uint32_t startBits = (currTime & 0x80) ? 0x7fff0000 : 0xffff0000;
|
||||
uint32_t startMask = 0xffff0000;
|
||||
s_adjustment = (((currTime & ~startMask) | startBits) - currTime) | 1;
|
||||
ASSERT(s_adjustment);
|
||||
}
|
||||
@ -89,7 +89,7 @@ AUTO_INIT_FUNC(AutoInitializeAdjustment) {
|
||||
***/
|
||||
|
||||
//============================================================================
|
||||
dword TimeGetMs () {
|
||||
uint32_t TimeGetMs () {
|
||||
#ifdef HS_DEBUGGING
|
||||
|
||||
// For debug builds, return an adjusted timer value
|
||||
|
Reference in New Issue
Block a user