Fixed compilation on Linux

Addresses issue https://github.com/fish-shell/fish-shell/issues/264
This commit is contained in:
Siteshwar Vashisht
2012-08-05 18:37:51 +05:30
parent ba070e21e4
commit deca475972
2 changed files with 4 additions and 4 deletions

View File

@@ -2344,7 +2344,7 @@ void parser_t::eval_job( tokenizer *tok )
{
if( job_start_pos < tok_get_pos( tok ) )
{
long stop_pos = tok_get_pos( tok );
int stop_pos = tok_get_pos( tok );
const wchar_t *newline = wcschr(tok_string(tok)+start_pos, L'\n');
if( newline )
stop_pos = mini( stop_pos, newline - tok_string(tok) );