diff options
Diffstat (limited to 'src/nad_init.c')
| -rw-r--r-- | src/nad_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nad_init.c b/src/nad_init.c index 3b35ea63..a84b0387 100644 --- a/src/nad_init.c +++ b/src/nad_init.c @@ -63,7 +63,7 @@ static void swap_words( void *data_in, int word_size, int word_count ) for( i = 0; i < word_size/2; i++ ) { - int t; + unsigned char t; t = data[i]; data[i] = data[word_size-i-1]; @@ -134,7 +134,7 @@ struct CTABLE *nad_ctable_init( projCtx ctx, PAFile fid ) } /* trim white space and newlines off id */ - for( id_end = strlen(ct->id)-1; id_end > 0; id_end-- ) + for( id_end = (int)strlen(ct->id)-1; id_end > 0; id_end-- ) { if( ct->id[id_end] == '\n' || ct->id[id_end] == ' ' ) ct->id[id_end] = '\0'; @@ -181,7 +181,7 @@ int nad_ctable2_load( projCtx ctx, struct CTABLE *ct, PAFile fid ) if( !IS_LSB ) { - swap_words( ct->cvs, 4, a_size * 2 ); + swap_words( ct->cvs, 4, (int)a_size * 2 ); } return 1; @@ -243,7 +243,7 @@ struct CTABLE *nad_ctable2_init( projCtx ctx, PAFile fid ) } /* trim white space and newlines off id */ - for( id_end = strlen(ct->id)-1; id_end > 0; id_end-- ) + for( id_end = (int)strlen(ct->id)-1; id_end > 0; id_end-- ) { if( ct->id[id_end] == '\n' || ct->id[id_end] == ' ' ) ct->id[id_end] = '\0'; |
