diff options
author | 2006-06-02 05:42:31 +1000 | |
---|---|---|
committer | 2006-06-02 05:42:31 +1000 | |
commit | 4ffd2afccdb49b333ae8ab574884737f3984c676 (patch) | |
tree | 094f3aeca0afe9297137af51aa1bf513cc134e2b /expand.c | |
parent | ec58ffa641b8c68a6bd8cdecfcdda107234b0674 (diff) |
Fix some minor 64-bit uncleanlieness - thanks to James Anthill
darcs-hash:20060601194231-ac50b-a6b9b94379ba1d5bb6c61f7fad4652c8f748b25f.gz
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -778,7 +778,7 @@ static int expand_variables( wchar_t *in, array_list_t *out, int last_idx ) stop_pos++; while( 1 ) { - int tmp; + long tmp; while( iswspace(in[stop_pos]) || (in[stop_pos]==INTERNAL_SEPARATOR)) stop_pos++; @@ -814,7 +814,7 @@ static int expand_variables( wchar_t *in, array_list_t *out, int last_idx ) int j; for( j=0; j<al_get_count( var_idx_list ); j++) { - int tmp = (int)al_get( var_idx_list, j ); + long tmp = (long)al_get( var_idx_list, j ); if( tmp < 1 || tmp > al_get_count( &var_item_list ) ) { error( SYNTAX_ERROR, |