1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

lib-src/libsndfile: fix warnings about bit-shifting negative constant

This commit is contained in:
Paul Licameli 2018-11-13 08:49:13 -05:00
parent 449bd38477
commit 73452e96ee
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ static void Decoding_of_the_coded_Log_Area_Ratios (
#undef STEP
#define STEP( B, MIC, INVA ) \
temp1 = GSM_ADD( *LARc++, MIC ) << 10; \
temp1 = GSM_SUB( temp1, B << 1 ); \
temp1 = GSM_SUB( temp1, B * 2 ); \
temp1 = GSM_MULT_R( INVA, temp1 ); \
*LARpp++ = GSM_ADD( temp1, temp1 );

View File

@ -63,7 +63,7 @@ ima_oki_adpcm_init (IMA_OKI_ADPCM * state, IMA_OKI_ADPCM_TYPE type)
else
{ state->max_step_index = ARRAY_LEN (oki_steps) - 1 ;
state->steps = oki_steps ;
state->mask = (~0) << 4 ;
state->mask = (~0u) << 4 ;
} ;
} /* ima_oki_adpcm_init */