Changeset 5357:f3c705877ceb in roaraudio for libroar/hash.c
- Timestamp:
- 12/15/11 18:13:47 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/hash.c
r5284 r5357 89 89 {ROAR_HT_ISBN13, "ISBN13", 8 }, 90 90 {ROAR_HT_ADLER32, "ADLER32", 4 }, 91 {-1, NULL }91 {-1, NULL, -1} 92 92 }; 93 93 … … 211 211 } 212 212 213 if ( !(slen == -1 || digestlen == slen) ) {213 if ( !(slen == -1 || (ssize_t)digestlen == slen) ) { 214 214 roar_err_set(ROAR_ERROR_INVAL); 215 215 return -1; … … 410 410 411 411 algo = roar_ht2gcrypt_tested(algo); 412 if ( algo == -1 )412 if ( algo == (roar_hash_t)-1 ) 413 413 return -1; 414 414 … … 447 447 448 448 len = roar_ht_digestlen(algo); 449 if ( len == -1 )449 if ( len == (size_t)-1 ) /* this is a hack to avoid len to be of type ssize_t which breaks following code */ 450 450 return -1; 451 451
Note: See TracChangeset
for help on using the changeset viewer.