Mercurial > vim
comparison src/terminal.c @ 13505:a784ef72b617 v8.0.1626
patch 8.0.1626: compiler warning for possible loss of data
commit https://github.com/vim/vim/commit/b571c63d481b065dc22465300e41a4b8cff66120
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 21 22:27:59 2018 +0100
patch 8.0.1626: compiler warning for possible loss of data
Problem: Compiler warning for possible loss of data.
Solution: Use size_t instead of int. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 21 Mar 2018 22:30:06 +0100 |
parents | a4a559e08798 |
children | d0d66898e98b |
comparison
equal
deleted
inserted
replaced
13504:0414a701eed9 | 13505:a784ef72b617 |
---|---|
3771 + JO2_VERTICAL + JO2_CURWIN + JO2_NORESTORE) == FAIL) | 3771 + JO2_VERTICAL + JO2_CURWIN + JO2_NORESTORE) == FAIL) |
3772 goto theend; | 3772 goto theend; |
3773 | 3773 |
3774 if (opt.jo_term_name == NULL) | 3774 if (opt.jo_term_name == NULL) |
3775 { | 3775 { |
3776 int len = STRLEN(fname1) + 12; | 3776 size_t len = STRLEN(fname1) + 12; |
3777 | 3777 |
3778 fname_tofree = alloc(len); | 3778 fname_tofree = alloc((int)len); |
3779 if (fname_tofree != NULL) | 3779 if (fname_tofree != NULL) |
3780 { | 3780 { |
3781 vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1); | 3781 vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1); |
3782 opt.jo_term_name = fname_tofree; | 3782 opt.jo_term_name = fname_tofree; |
3783 } | 3783 } |