about summary refs log tree commit diff
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
parent067cfa3a06156d27a0e526c685b322c1212c2a2b (diff)
downloadzsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.tar.gz
zsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.tar.xz
zsh-23bbf18d41e0afd28bc97edf8941d5d783c3bd8e.zip
Fixed some compiler warnings about signed/unsigned issues.
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_refresh.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b24ad70d..e9f4a64fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-18  Wayne Davison  <wayned@users.sourceforge.net>
+
+	* unposted: Src/Zle/zle_refresh.c: fixed compiler warnings
+	about signed/unsigned issues.
+
 2008-04-18  Peter Stephenson  <pws@csr.com>
 
 	* 24839: Src/Zle/zle_word.c: misuse of variable in 24825.
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 */