diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2018-01-06 16:28:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2018-01-06 16:28:59 +0000 |
commit | c08a8d775d9ec66e3999e2e512ee8ae5b69b826f (patch) | |
tree | 370b94252d121903bb78cd44feb190d8837bdcfc /bin/ksh/history.c | |
parent | 50c1986fcdee977a1b88318e0e39c0f0af9822d6 (diff) |
Bring back the sign compare changes, this time with a fix from otto@
that fixes the issues seen on hppa. OK deraadt@ otto@
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r-- | bin/ksh/history.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c index 80b1042ebb5..3812e92f895 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.77 2018/01/04 19:06:16 millert Exp $ */ +/* $OpenBSD: history.c,v 1.78 2018/01/06 16:28:58 millert Exp $ */ /* * command history @@ -545,7 +545,7 @@ sethistcontrol(const char *str) void sethistsize(int n) { - if (n > 0 && n != histsize) { + if (n > 0 && (uint32_t)n != histsize) { int offset = histptr - history; /* save most recent history */ |