diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2007-04-05 19:53:23 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2007-04-05 19:53:23 +0000 |
commit | a227b20fefda7d14316523ddd3aa1ce2b439169c (patch) | |
tree | 08ddd2b5636ded3fee6ac175c16014986e5d0969 /htop.c | |
parent | e3198ca63b0996f4a2e46ab5bbb98650de47ea3e (diff) |
Switch to unsigned keys in hash, according to issue #1688290
in the sf tracker
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |