Fixes a warning about assignment in an if()

This commit is contained in:
Jean-Marc Valin 2011-09-07 14:23:12 -04:00
parent aa5ea6ee52
commit 612b88b17b

View file

@ -171,7 +171,7 @@ opus_int silk_Encode(
}
/* Reset Encoder */
for( n = 0; n < encControl->nChannelsInternal; n++ ) {
if( ret = silk_init_encoder( &psEnc->state_Fxx[ n ] ) ) {
if( (ret = silk_init_encoder( &psEnc->state_Fxx[ n ] ) ) != 0 ) {
SKP_assert( 0 );
}
}