summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c
index 705986be2..af71bfd9a 100644
--- a/src/gui/curses/gui-curses-color.c
+++ b/src/gui/curses/gui-curses-color.c
@@ -669,7 +669,7 @@ gui_color_init_vars ()
gui_color_num_pairs = (gui_color_term_color_pairs >= 32768) ?
32767 : gui_color_term_color_pairs - 1;
gui_color_pairs = calloc (
- (gui_color_term_colors + 2) * (gui_color_term_colors + 2),
+ (size_t)(gui_color_term_colors + 2) * (gui_color_term_colors + 2),
sizeof (gui_color_pairs[0]));
gui_color_pairs_used = 0;
@@ -1226,7 +1226,7 @@ gui_color_reset_pairs ()
if (gui_color_pairs)
{
memset (gui_color_pairs, 0,
- (gui_color_term_colors + 2)
+ (size_t)(gui_color_term_colors + 2)
* (gui_color_term_colors + 2)
* sizeof (gui_color_pairs[0]));
gui_color_pairs_used = 0;