projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add and fix some comments.
[libfirm]
/
ir
/
lower
/
lower_switch.c
diff --git
a/ir/lower/lower_switch.c
b/ir/lower/lower_switch.c
index
83af4f7
..
ed1f294
100644
(file)
--- a/
ir/lower/lower_switch.c
+++ b/
ir/lower/lower_switch.c
@@
-98,8
+98,8
@@
static void analyse_switch(cond_env_t *env, ir_node *cond)
static int casecmp(const void *a, const void *b)
{
static int casecmp(const void *a, const void *b)
{
- const case_data_t *cda = a;
- const case_data_t *cdb = b;
+ const case_data_t *cda =
(const case_data_t*)
a;
+ const case_data_t *cdb =
(const case_data_t*)
b;
/*
* Enforce unsigned sorting. Signed comparison will behave differently for
/*
* Enforce unsigned sorting. Signed comparison will behave differently for
@@
-299,7
+299,7
@@
static void create_out_of_bounds_check(cond_env_t *env, ir_node *cond)
*/
static void find_cond_nodes(ir_node *block, void *ctx)
{
*/
static void find_cond_nodes(ir_node *block, void *ctx)
{
- walk_env_t *env = ctx;
+ walk_env_t *env =
(walk_env_t *)
ctx;
ir_node *projx;
ir_node *cond;
ir_node *sel;
ir_node *projx;
ir_node *cond;
ir_node *sel;