fixed compilation on x86_64

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1847 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-11-22 22:10:12 +00:00
parent 4b41b5866b
commit 3bed588917
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2008-11-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/mixer.cpp:
fixed compilation on x86_64
* src/core/automatable_model.cpp:
fixed wrong logic in automatableModel::setValue() which led to bugs when
changing linked controls to 0

View File

@@ -712,7 +712,7 @@ void mixer::bufferToPort( const sampleFrame * _buf,
void mixer::clearAudioBuffer( sampleFrame * _ab, const f_cnt_t _frames,
const f_cnt_t _offset )
{
if( likely( (int)( _ab+_offset ) % 16 == 0 && _frames % 8 == 0 ) )
if( likely( (size_t)( _ab+_offset ) % 16 == 0 && _frames % 8 == 0 ) )
{
alignedMemClear( _ab+_offset, sizeof( *_ab ) * _frames );
}