summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2008-04-18 13:50:53 +0000
committerWayne Davison <wayned@users.sourceforge.net>2008-04-18 13:50:53 +0000
commit23bbf18d41e0afd28bc97edf8941d5d783c3bd8e (patch)
tree5df0835b166a72f49a0086f10c809c75d57f6f4f /Src/Zle
parent067cfa3a06156d27a0e526c685b322c1212c2a2b (diff)
downloadzsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.tar.gz
zsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.tar.xz
zsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.zip
Fixed some compiler warnings about signed/unsigned issues.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_refresh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 670707d76..89bf30d9a 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -289,7 +289,7 @@ static const REFRESH_ELEMENT zr_end_ellipsis[] = {
     { ZWC(' '), 0 },
 };
 #define ZR_END_ELLIPSIS_SIZE	\
-    (sizeof(zr_end_ellipsis)/sizeof(zr_end_ellipsis[0]))
+    ((int)(sizeof(zr_end_ellipsis)/sizeof(zr_end_ellipsis[0])))
 
 static const REFRESH_ELEMENT zr_mid_ellipsis1[] = {
     { ZWC(' '), 0 },
@@ -300,14 +300,14 @@ static const REFRESH_ELEMENT zr_mid_ellipsis1[] = {
     { ZWC('.'), 0 },
 };
 #define ZR_MID_ELLIPSIS1_SIZE	\
-    (sizeof(zr_mid_ellipsis1)/sizeof(zr_mid_ellipsis1[0]))
+    ((int)(sizeof(zr_mid_ellipsis1)/sizeof(zr_mid_ellipsis1[0])))
 
 static const REFRESH_ELEMENT zr_mid_ellipsis2[] = {
     { ZWC('>'), 0 },
     { ZWC(' '), 0 },
 };
 #define ZR_MID_ELLIPSIS2_SIZE	\
-    (sizeof(zr_mid_ellipsis2)/sizeof(zr_mid_ellipsis2[0]))
+    ((int)(sizeof(zr_mid_ellipsis2)/sizeof(zr_mid_ellipsis2[0])))
 
 static const REFRESH_ELEMENT zr_start_ellipsis[] = {
     { ZWC('>'), 0 },
@@ -317,7 +317,7 @@ static const REFRESH_ELEMENT zr_start_ellipsis[] = {
     { ZWC('.'), 0 },
 };
 #define ZR_START_ELLIPSIS_SIZE	\
-    (sizeof(zr_start_ellipsis)/sizeof(zr_start_ellipsis[0]))
+    ((int)(sizeof(zr_start_ellipsis)/sizeof(zr_start_ellipsis[0])))
 
 
 /* Defines the available types of highlighting */