summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/params.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c685a51d0..6ec9874ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-27 Wayne Davison <wayned@users.sourceforge.net>
+
+ * unposted: Src/params.c: silenced a compiler warning by making
+ an int unsigned.
+
2007-12-24 Clint Adams <clint@zsh.org>
* 24316: Test/runtests.zsh, Test/ztst.zsh: count skipped tests
diff --git a/Src/params.c b/Src/params.c
index 0b372bf25..a8a0f7780 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1891,7 +1891,7 @@ getstrvalue(Value v)
if (v->flags & VALFLAG_SUBST) {
if (v->pm->node.flags & (PM_LEFT|PM_RIGHT_B|PM_RIGHT_Z)) {
- int fwidth = v->pm->width ? v->pm->width : MB_METASTRLEN(s);
+ unsigned int fwidth = v->pm->width ? v->pm->width : MB_METASTRLEN(s);
switch (v->pm->node.flags & (PM_LEFT | PM_RIGHT_B | PM_RIGHT_Z)) {
char *t, *tend;
unsigned int t0;