From 43a0971840f2254cc7aa719b3a10493e4d072c1a Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 29 Feb 2008 22:49:06 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ include/import_filter.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 34492c4a1..51b70f2b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-02-29 Tobias Doerffel + * 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 diff --git a/include/import_filter.h b/include/import_filter.h index 2420598df..0e7718b37 100644 --- a/include/import_filter.h +++ b/include/import_filter.h @@ -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( c ) ); }