mirror of
https://github.com/thestk/stk
synced 2026-02-07 09:46:16 +00:00
FileRead::getMatInfo, fixed if-else block
This commit is contained in:
@@ -622,7 +622,7 @@ bool FileRead :: getMatInfo( const char *fileName )
|
|||||||
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
|
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
|
||||||
srate = (StkFloat) rate;
|
srate = (StkFloat) rate;
|
||||||
}
|
}
|
||||||
if ( type == 2 ) { // UINT8
|
else if ( type == 2 ) { // UINT8
|
||||||
unsigned char rate;
|
unsigned char rate;
|
||||||
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
|
if ( fread(&rate, 1, 1, fd_) != 1 ) goto error;
|
||||||
srate = (StkFloat) rate;
|
srate = (StkFloat) rate;
|
||||||
|
|||||||
Reference in New Issue
Block a user