Skip to content

Commit

Permalink
fix(argtable3): Visual C++ x64 compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomghuang committed Aug 18, 2017
1 parent 1d44db7 commit 62dbb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions argtable3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ static const TRexChar *trex_matchnode(TRex* exp,TRexNode *node,const TRexChar *s
} while((n->next != -1) && (n = &exp->_nodes[n->next]));

if(capture != -1)
exp->_matches[capture].len = cur - exp->_matches[capture].begin;
exp->_matches[capture].len = (int)(cur - exp->_matches[capture].begin);
return cur;
}
case OP_WB:
Expand Down Expand Up @@ -4830,7 +4830,7 @@ void arg_print_formatted( FILE *fp,
const unsigned rmargin,
const char *text )
{
const unsigned textlen = strlen( text );
const unsigned textlen = (unsigned)strlen( text );
unsigned line_start = 0;
unsigned line_end = textlen + 1;
const unsigned colwidth = (rmargin - lmargin) + 1;
Expand Down

0 comments on commit 62dbb9f

Please sign in to comment.