X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=a96c8acd07a1119342eb1545273139e125aedb50;hb=f4069627a10d7c5d0ae49f184117cf6e23bfada0;hp=1ab5ce6674a161481c0ae8daf5e692d136ba2256;hpb=9d3c8631459f431c313160dab5778e8a7b88dd92;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index 1ab5ce667..a96c8acd0 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -1,5 +1,5 @@ /* - * 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. * @@ -143,7 +143,7 @@ static unsigned get_type_number(stabs_handle *h, ir_type *tp) 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 */ @@ -508,7 +508,7 @@ static void gen_method_type(wenv_t *env, ir_type *tp) */ 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)) { @@ -568,10 +568,9 @@ static void walk_type(type_or_ent tore, void *ctx) 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;