summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index 496e2ffac..68b3b65a7 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2906,7 +2906,7 @@ add_long_to_buf(val, dst)
int i;
int shift;
- for (i = 1; i <= sizeof(long_u); i++)
+ for (i = 1; i <= (int)sizeof(long_u); i++)
{
shift = 8 * (sizeof(long_u) - i);
dst[i - 1] = (char_u) ((val >> shift) & 0xff);
@@ -2937,7 +2937,7 @@ get_long_from_buf(buf, val)
len = get_bytes_from_buf(buf, bytes, (int)sizeof(long_u));
if (len != -1)
{
- for (i = 0; i < sizeof(long_u); i++)
+ for (i = 0; i < (int)sizeof(long_u); i++)
{
shift = 8 * (sizeof(long_u) - 1 - i);
*val += (long_u)bytes[i] << shift;