fixed importFilter::readByte() to return proper integer instead of signed char - makes import-filters finally work

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@742 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-02-29 22:49:06 +00:00
parent 1f974b96d4
commit 43a0971840
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
2008-02-29 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* include/import_filter.h:
fixed importFilter::readByte() to return proper integer instead of
signed char - makes import-filters finally work
* plugins/midi_import/midi_import.cpp:
* plugins/flp_import/flp_import.cpp:
fixed parameter-list of lmms_plugin_main to work properly

View File

@@ -67,8 +67,8 @@ protected:
inline int readByte( void )
{
char c;
if( m_file.getChar( &c ) )
unsigned char c;
if( m_file.getChar( (char*) &c ) )
{
return( static_cast<int>( c ) );
}