summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2018-01-06 16:28:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2018-01-06 16:28:59 +0000
commitc08a8d775d9ec66e3999e2e512ee8ae5b69b826f (patch)
tree370b94252d121903bb78cd44feb190d8837bdcfc /bin/ksh/history.c
parent50c1986fcdee977a1b88318e0e39c0f0af9822d6 (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.c4
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 */