projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convopt: fix potential bug with modulo shifts, improve cost calculation for optimizab...
[libfirm]
/
ir
/
adt
/
plist.c
diff --git
a/ir/adt/plist.c
b/ir/adt/plist.c
index
c4c6145
..
fae710a
100644
(file)
--- a/
ir/adt/plist.c
+++ b/
ir/adt/plist.c
@@
-57,7
+57,7
@@
static plist_element_t *allocate_element(plist_t* list)
plist_t *plist_new(void)
{
plist_t *plist_new(void)
{
- plist_t *list = xmalloc(sizeof(*list) + sizeof(*list->obst));
+ plist_t *list =
(plist_t*)
xmalloc(sizeof(*list) + sizeof(*list->obst));
list->obst = (struct obstack *)&list[1];
list->foreign_obstack = 0;
list->obst = (struct obstack *)&list[1];
list->foreign_obstack = 0;
@@
-146,7
+146,7
@@
void plist_insert_before(plist_t *list, plist_element_t *element, void *value)
list->first_element = newElement;
}
list->first_element = newElement;
}
- element->prev = newElement;
+ element->prev = newElement;
++list->element_count;
}
++list->element_count;
}