Revision 187a5379

View differences:

libavcodec/aacdec.c
964 964
    union float754 s = { .f = *scale };
965 965
    union float754 t;
966 966

  
967
    t.i = s.i ^ (sign & 1<<31);
967
    t.i = s.i ^ (sign & 1U<<31);
968 968
    *dst++ = v[idx    & 3] * t.f;
969 969

  
970 970
    sign <<= nz & 1; nz >>= 1;
971
    t.i = s.i ^ (sign & 1<<31);
971
    t.i = s.i ^ (sign & 1U<<31);
972 972
    *dst++ = v[idx>>2 & 3] * t.f;
973 973

  
974 974
    sign <<= nz & 1; nz >>= 1;
975
    t.i = s.i ^ (sign & 1<<31);
975
    t.i = s.i ^ (sign & 1U<<31);
976 976
    *dst++ = v[idx>>4 & 3] * t.f;
977 977

  
978 978
    sign <<= nz & 1; nz >>= 1;
979
    t.i = s.i ^ (sign & 1<<31);
979
    t.i = s.i ^ (sign & 1U<<31);
980 980
    *dst++ = v[idx>>6 & 3] * t.f;
981 981

  
982 982
    return dst;
......
1169 1169
                                    b += 4;
1170 1170
                                    n = (1 << b) + SHOW_UBITS(re, gb, b);
1171 1171
                                    LAST_SKIP_BITS(re, gb, b);
1172
                                    *icf++ = cbrt_tab[n] | (bits & 1<<31);
1172
                                    *icf++ = cbrt_tab[n] | (bits & 1U<<31);
1173 1173
                                    bits <<= 1;
1174 1174
                                } else {
1175 1175
                                    unsigned v = ((const uint32_t*)vq)[cb_idx & 15];
1176
                                    *icf++ = (bits & 1<<31) | v;
1176
                                    *icf++ = (bits & 1U<<31) | v;
1177 1177
                                    bits <<= !!v;
1178 1178
                                }
1179 1179
                                cb_idx >>= 4;
libavcodec/dsputil.c
3827 3827
{
3828 3828

  
3829 3829
    if(a > mini) return mini;
3830
    else if((a^(1<<31)) > maxisign) return maxi;
3830
    else if((a^(1U<<31)) > maxisign) return maxi;
3831 3831
    else return a;
3832 3832
}
3833 3833

  
......
3835 3835
    int i;
3836 3836
    uint32_t mini = *(uint32_t*)min;
3837 3837
    uint32_t maxi = *(uint32_t*)max;
3838
    uint32_t maxisign = maxi ^ (1<<31);
3838
    uint32_t maxisign = maxi ^ (1U<<31);
3839 3839
    uint32_t *dsti = (uint32_t*)dst;
3840 3840
    const uint32_t *srci = (const uint32_t*)src;
3841 3841
    for(i=0; i<len; i+=8) {
libavcodec/fraps.c
180 180
            return -1;
181 181
        }
182 182
        /* bit 31 means same as previous pic */
183
        f->pict_type = (header & (1<<31))? FF_P_TYPE : FF_I_TYPE;
183
        f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE;
184 184
        f->key_frame = f->pict_type == FF_I_TYPE;
185 185

  
186 186
        if (f->pict_type == FF_I_TYPE) {
......
223 223
            return -1;
224 224
        }
225 225
        /* bit 31 means same as previous pic */
226
        f->pict_type = (header & (1<<31))? FF_P_TYPE : FF_I_TYPE;
226
        f->pict_type = (header & (1U<<31))? FF_P_TYPE : FF_I_TYPE;
227 227
        f->key_frame = f->pict_type == FF_I_TYPE;
228 228

  
229 229
        if (f->pict_type == FF_I_TYPE) {
libavcodec/ppc/fft_altivec.c
122 122
    int n = 1 << s->mdct_bits;
123 123
    int n4 = n >> 2;
124 124
    int n16 = n >> 4;
125
    vec_u32 sign = {1<<31,1<<31,1<<31,1<<31};
125
    vec_u32 sign = {1U<<31,1U<<31,1U<<31,1U<<31};
126 126
    vec_u32 *p0 = (vec_u32*)(output+n4);
127 127
    vec_u32 *p1 = (vec_u32*)(output+n4*3);
128 128

  
libavcodec/vorbis_enc.c
394 394
    mant = (int)ldexp(frexp(f, &exp), 20);
395 395
    exp += 788 - 20;
396 396
    if (mant < 0) {
397
        res |= (1 << 31);
397
        res |= (1U << 31);
398 398
        mant = -mant;
399 399
    }
400 400
    res |= mant | (exp << 21);

Also available in: Unified diff