From a227b20fefda7d14316523ddd3aa1ce2b439169c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Apr 2007 19:53:23 +0000 Subject: Switch to unsigned keys in hash, according to issue #1688290 in the sf tracker --- htop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'htop.c') diff --git a/htop.c b/htop.c index 3fb72c98..96e01060 100644 --- a/htop.c +++ b/htop.c @@ -312,7 +312,7 @@ int main(int argc, char** argv) { incSearchIndex = 0; incSearchBuffer[0] = 0; int currPos = Panel_getSelectedIndex(panel); - int currPid = 0; + unsigned int currPid = 0; int currScrollV = panel->scrollV; if (follow) currPid = ProcessList_get(pl, currPos)->pid; @@ -406,7 +406,7 @@ int main(int argc, char** argv) { continue; } if (isdigit((char)ch)) { - int pid = ch-48 + acc; + unsigned int pid = ch-48 + acc; for (int i = 0; i < ProcessList_size(pl) && ((Process*) Panel_getSelected(panel))->pid != pid; i++) Panel_setSelected(panel, i); acc = pid * 10; -- cgit v1.2.3