comparison src/tag.c @ 16461:826ad48af5e3 v8.1.1235

patch 8.1.1235: compiler warnings for using STRLEN() value commit https://github.com/vim/vim/commit/c0af78fa0869d39314336faef36239f62f09e148 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 29 19:47:22 2019 +0200 patch 8.1.1235: compiler warnings for using STRLEN() value Problem: Compiler warnings for using STRLEN() value. Solution: Cast to int. (Christian Brabandt, Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Apr 2019 20:00:08 +0200
parents 54ffc82f38a8
children 4182f74e2965
comparison
equal deleted inserted replaced
16460:676ccae494ce 16461:826ad48af5e3
1389 while (NULL != (dict_key = dict_iterate_next(&iter, &tv))) 1389 while (NULL != (dict_key = dict_iterate_next(&iter, &tv)))
1390 { 1390 {
1391 if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL) 1391 if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
1392 continue; 1392 continue;
1393 1393
1394 len += STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE" 1394 len += (int)STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE"
1395 if (!STRCMP(dict_key, "name")) 1395 if (!STRCMP(dict_key, "name"))
1396 { 1396 {
1397 res_name = tv->vval.v_string; 1397 res_name = tv->vval.v_string;
1398 continue; 1398 continue;
1399 } 1399 }
1413 res_kind = tv->vval.v_string; 1413 res_kind = tv->vval.v_string;
1414 continue; 1414 continue;
1415 } 1415 }
1416 // Other elements will be stored as "\tKEY:VALUE" 1416 // Other elements will be stored as "\tKEY:VALUE"
1417 // Allocate space for the key and the colon 1417 // Allocate space for the key and the colon
1418 len += STRLEN(dict_key) + 1; 1418 len += (int)STRLEN(dict_key) + 1;
1419 } 1419 }
1420 1420
1421 if (has_extra) 1421 if (has_extra)
1422 len += 2; // need space for ;" 1422 len += 2; // need space for ;"
1423 1423