aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-02 05:42:31 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-02 05:42:31 +1000
commit4ffd2afccdb49b333ae8ab574884737f3984c676 (patch)
tree094f3aeca0afe9297137af51aa1bf513cc134e2b /expand.c
parentec58ffa641b8c68a6bd8cdecfcdda107234b0674 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expand.c b/expand.c
index b1ce9916..4180f5bd 100644
--- a/expand.c
+++ b/expand.c
@@ -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,