Switch indices in strings to size_t.

This commit is contained in:
2017-07-20 21:46:39 -07:00
parent 8e29bdf52a
commit 1399934a24
2 changed files with 9 additions and 8 deletions

View File

@@ -154,7 +154,7 @@ int _eval_foreach_find_match(void *data, va_list args){
return 0;
}
liblex_result eval_word(char* string, int index, eval_config* config, match* mtch){
liblex_result eval_word(char* string, size_t index, eval_config* config, match* mtch){
liblex_result result = LIBLEX_SUCCESS;
eval evl;
evl.index = evl.begin = index;
@@ -189,7 +189,7 @@ liblex_result eval_word(char* string, int index, eval_config* config, match* mtc
return result;
}
liblex_result eval_all(char* string, int index, eval_config* config, ll* matches){
liblex_result eval_all(char* string, size_t index, eval_config* config, ll* matches){
liblex_result result = LIBLEX_SUCCESS;
match* new_match = NULL;
int done = 0;