/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
num = h->next_type_nr++;
pmap_insert(h->type_map, tp, INT_TO_PTR(num));
} else {
- num = PTR_TO_INT(entry->value);
+ num = (unsigned)PTR_TO_INT(entry->value);
}
return num;
} /* get_type_number */
*/
static void walk_type(type_or_ent tore, void *ctx)
{
- wenv_t *env = ctx;
+ wenv_t *env = (wenv_t*)ctx;
ir_type *tp;
if (is_type(tore.typ)) {
static void finish_types(wenv_t *env)
{
waitq *wq = env->wq;
- ir_type *tp;
while (! waitq_empty(wq)) {
- tp = waitq_get(wq);
+ ir_type *tp = (ir_type*)waitq_get(wq);
if (IS_TYPE_READY(tp))
continue;