Changeset 5270:e25346c13638 in roaraudio for libroar/hash.c


Ignore:
Timestamp:
11/17/11 18:20:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some gcc -Wextra warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash.c

    r5188 r5270  
    146146 int i; 
    147147 
    148  for (i = 0; _libroar_hashes[i].id != -1; i++) 
     148 for (i = 0; _libroar_hashes[i].id != (uint_least32_t)-1; i++) 
    149149  if ( _libroar_hashes[i].id == ht ) 
    150150   return _libroar_hashes[i].name; 
     
    157157 int i; 
    158158 
    159  for (i = 0; _libroar_hashes[i].id != -1; i++) 
     159 for (i = 0; _libroar_hashes[i].id != (uint_least32_t)-1; i++) 
    160160  if ( !strcasecmp(_libroar_hashes[i].name, ht) ) 
    161161   return _libroar_hashes[i].id; 
     
    168168 int i; 
    169169 
    170  for (i = 0; _libroar_hashes[i].id != -1; i++) 
     170 for (i = 0; _libroar_hashes[i].id != (uint_least32_t)-1; i++) 
    171171  if ( _libroar_hashes[i].id == ht ) 
    172172   return _libroar_hashes[i].dlen; 
Note: See TracChangeset for help on using the changeset viewer.