mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
Compilation error fix
This commit is contained in:
parent
d15b3d6ffd
commit
d07f28aec5
1 changed files with 2 additions and 2 deletions
|
@ -129,14 +129,14 @@ private:
|
|||
|
||||
int64_t scaleDiff( int64_t older, int64_t newer ) const
|
||||
{
|
||||
int64_t const mask = ~0 << ( mAudShift + 4 );
|
||||
int64_t const mask = (int64_t)( ~0ull << ( mAudShift + 4 ) );
|
||||
return ( ( newer & mask ) - ( older & mask ) ) >> ( mAudShift + 4 );
|
||||
}
|
||||
|
||||
void updateValue( int64_t tick )
|
||||
{
|
||||
if ( mEnableCount )
|
||||
mValue = (uint8_t)std::max( 0ll, mValue - scaleDiff( mValueUpdateTick, tick ) );
|
||||
mValue = (uint8_t)std::max( (int64_t)0, mValue - scaleDiff( mValueUpdateTick, tick ) );
|
||||
mValueUpdateTick = tick;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue