Mercurial > vim
comparison src/textprop.c @ 15390:00aa76a735e7 v8.1.0703
patch 8.1.0703: compiler warnings with 64-bit compiler
commit https://github.com/vim/vim/commit/8aef43b66cf280c79a75d81f43ce5223b9044e63
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 8 20:14:35 2019 +0100
patch 8.1.0703: compiler warnings with 64-bit compiler
Problem: Compiler warnings with 64-bit compiler.
Solution: Change types, add type casts. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 08 Jan 2019 20:15:07 +0100 |
parents | 44dd3ce11201 |
children | 55ccc2d353bd |
comparison
equal
deleted
inserted
replaced
15389:0351fa7879f9 | 15390:00aa76a735e7 |
---|---|
355 * Only works for the current buffer. | 355 * Only works for the current buffer. |
356 */ | 356 */ |
357 static void | 357 static void |
358 set_text_props(linenr_T lnum, char_u *props, int len) | 358 set_text_props(linenr_T lnum, char_u *props, int len) |
359 { | 359 { |
360 char_u *text; | 360 char_u *text; |
361 char_u *newtext; | 361 char_u *newtext; |
362 size_t textlen; | 362 int textlen; |
363 | 363 |
364 text = ml_get(lnum); | 364 text = ml_get(lnum); |
365 textlen = STRLEN(text) + 1; | 365 textlen = (int)STRLEN(text) + 1; |
366 newtext = alloc(textlen + len); | 366 newtext = alloc(textlen + len); |
367 if (newtext == NULL) | 367 if (newtext == NULL) |
368 return; | 368 return; |
369 mch_memmove(newtext, text, textlen); | 369 mch_memmove(newtext, text, textlen); |
370 if (len > 0) | 370 if (len > 0) |