Fixes a warning about assignment in an if()
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 7 Sep 2011 18:23:12 +0000 (14:23 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 7 Sep 2011 18:25:05 +0000 (14:25 -0400)
silk/silk_enc_API.c

index 8624382..c447b26 100644 (file)
@@ -171,7 +171,7 @@ opus_int silk_Encode(
         }
         /* Reset Encoder */
         for( n = 0; n < encControl->nChannelsInternal; n++ ) {
         }
         /* 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 );
             }
         }
                 SKP_assert( 0 );
             }
         }