projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a43341c
)
Fixed compare function.
author
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 7 Aug 2007 13:48:14 +0000
(13:48 +0000)
committer
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 7 Aug 2007 13:48:14 +0000
(13:48 +0000)
Beware of subtraction and usinged variables!
[r15492]
ir/be/bespillbelady2.c
patch
|
blob
|
history
diff --git
a/ir/be/bespillbelady2.c
b/ir/be/bespillbelady2.c
index
e6e0bb8
..
6551b1a
100644
(file)
--- a/
ir/be/bespillbelady2.c
+++ b/
ir/be/bespillbelady2.c
@@
-122,7
+122,7
@@
static int loc_compare(const void *a, const void *b)
{
const loc_t *p = a;
const loc_t *q = b;
- return (
int) p->time - (int) q->time
;
+ return (
p->time > q->time) - (p->time < q->time)
;
}
static INLINE void workset_print(const workset_t *w)