- for (index = 0; index < count; index++) {
- host = xbt_dynar_get_as(table,index,msg_host_t);
- jhost = (jobject) host->extension(JAVA_HOST_LEVEL);
+ for (int index = 0; index < count; index++) {
+ msg_host_t host = xbt_dynar_get_as(table, index, msg_host_t);
+ jobject jhost = static_cast<jobject>(host->extension(JAVA_HOST_LEVEL));