static void class_freecpool(classinfo *c)
{
- u4 idx;
+ int idx;
u4 tag;
void* info;
/* check index and type of constantpool entry */
/* (pos == 0 is caught by type comparison) */
- if ((pos >= c->cpcount) || (c->cptags[pos] != ctype)) {
+ if (((int) pos >= c->cpcount) || (c->cptags[pos] != ctype)) {
exceptions_throw_classformaterror(c, "Illegal constant pool index");
return NULL;
}
{
/* invalid position in constantpool */
- if (pos >= c->cpcount) {
+ if ((int) pos >= c->cpcount) {
exceptions_throw_classformaterror(c, "Illegal constant pool index");
return NULL;
}
java_handle_objectarray_t* class_get_interfaces(classinfo *c)
{
classinfo* ic;
- u4 i;
+ int i;
if (!(c->state & CLASS_LINKED))
if (!link_class(c))
#if !defined(NDEBUG)
void class_showconstantpool (classinfo *c)
{
- u4 i;
+ int i;
void* e;
printf ("---- dump of constant pool ----\n");
for (i=0; i<c->cpcount; i++) {
- printf ("#%d: ", (int) i);
+ printf ("#%d: ", i);
e = c -> cpinfos [i];
if (e) {