From c08a8d775d9ec66e3999e2e512ee8ae5b69b826f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 6 Jan 2018 16:28:59 +0000 Subject: Bring back the sign compare changes, this time with a fix from otto@ that fixes the issues seen on hppa. OK deraadt@ otto@ --- bin/ksh/history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ksh/history.c') 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 */ -- cgit v1.2.3