[svn:parrot] r44524 - branches/rm_cflags/compilers/imcc
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Sat Feb 27 01:08:36 UTC 2010
Author: whiteknight
Date: Sat Feb 27 01:08:36 2010
New Revision: 44524
URL: https://trac.parrot.org/parrot/changeset/44524
Log:
fix two build warnings here involving const. chromatic++ for the winning idea
Modified:
branches/rm_cflags/compilers/imcc/reg_alloc.c
Modified: branches/rm_cflags/compilers/imcc/reg_alloc.c
==============================================================================
--- branches/rm_cflags/compilers/imcc/reg_alloc.c Sat Feb 27 00:40:47 2010 (r44523)
+++ branches/rm_cflags/compilers/imcc/reg_alloc.c Sat Feb 27 01:08:36 2010 (r44524)
@@ -613,8 +613,8 @@
reg_sort_f(ARGIN(const void *a), ARGIN(const void *b))
{
ASSERT_ARGS(reg_sort_f)
- const SymReg * const ra = *(SymReg**)a;
- const SymReg * const rb = *(SymReg**)b;
+ const SymReg * const ra = *(const SymReg * const *)a;
+ const SymReg * const rb = *(const SymReg * const *)b;
if (ra->first_ins->index < rb->first_ins->index)
return -1;
More information about the parrot-commits
mailing list