Mercurial > vim
comparison src/option.c @ 15472:0fcc1315c061 v8.1.0744
patch 8.1.0744: compiler warnings for signed/unsigned strings
commit https://github.com/vim/vim/commit/b1443b480fe9965a6eaa9211657d299e88964084
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 13 23:51:14 2019 +0100
patch 8.1.0744: compiler warnings for signed/unsigned strings
Problem: Compiler warnings for signed/unsigned strings.
Solution: A few more type cast fixes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Jan 2019 00:00:04 +0100 |
parents | 55ccc2d353bd |
children | 126cdab63a83 |
comparison
equal
deleted
inserted
replaced
15471:c3aa513f6b0b | 15472:0fcc1315c061 |
---|---|
6963 } | 6963 } |
6964 # ifdef FEAT_XFONTSET | 6964 # ifdef FEAT_XFONTSET |
6965 else if (varp == &p_guifontset) | 6965 else if (varp == &p_guifontset) |
6966 { | 6966 { |
6967 if (STRCMP(p_guifontset, "*") == 0) | 6967 if (STRCMP(p_guifontset, "*") == 0) |
6968 errmsg = (char_u *)N_("E597: can't select fontset"); | 6968 errmsg = N_("E597: can't select fontset"); |
6969 else if (gui.in_use && gui_init_font(p_guifontset, TRUE) != OK) | 6969 else if (gui.in_use && gui_init_font(p_guifontset, TRUE) != OK) |
6970 errmsg = (char_u *)N_("E598: Invalid fontset"); | 6970 errmsg = N_("E598: Invalid fontset"); |
6971 redraw_gui_only = TRUE; | 6971 redraw_gui_only = TRUE; |
6972 } | 6972 } |
6973 # endif | 6973 # endif |
6974 # ifdef FEAT_MBYTE | 6974 # ifdef FEAT_MBYTE |
6975 else if (varp == &p_guifontwide) | 6975 else if (varp == &p_guifontwide) |
7685 { | 7685 { |
7686 #ifdef FEAT_MOUSE | 7686 #ifdef FEAT_MOUSE |
7687 p = (char_u *)MOUSE_ALL; | 7687 p = (char_u *)MOUSE_ALL; |
7688 #else | 7688 #else |
7689 if (*p_mouse != NUL) | 7689 if (*p_mouse != NUL) |
7690 errmsg = (char_u *)N_("E538: No mouse support"); | 7690 errmsg = N_("E538: No mouse support"); |
7691 #endif | 7691 #endif |
7692 } | 7692 } |
7693 #if defined(FEAT_GUI) | 7693 #if defined(FEAT_GUI) |
7694 else if (varp == &p_go) /* 'guioptions' */ | 7694 else if (varp == &p_go) /* 'guioptions' */ |
7695 p = (char_u *)GO_ALL; | 7695 p = (char_u *)GO_ALL; |