summary refs log tree commit diff
diff options
context:
space:
mode:
-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 */