From: John L. <mov...@us...> - 2001-08-14 18:02:38
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv25297/dae Modified Files: opd_proc.c Log Message: fixes to the hash map ! Index: opd_proc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/opd_proc.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -r1.60 -r1.61 --- opd_proc.c 2001/07/28 19:20:26 1.60 +++ opd_proc.c 2001/08/14 18:02:33 1.61 @@ -1235,12 +1235,12 @@ hash = mapping->hash; while (hash) { - if (hash==-1) { + if (hash == -1) { /* possibly deleted file */ return; } - if (hash >= OP_HASH_MAP_NR) { + if (hash < 0 || hash >= OP_HASH_MAP_NR) { fprintf(stderr,"hash value %u out of range.\n",hash); return; } |