[svn:parrot] r49212 - in trunk: compilers/imcc compilers/opsc/src/Ops/Trans include/parrot src/ops
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue Sep 21 22:06:46 UTC 2010
Author: chromatic
Date: Tue Sep 21 22:06:46 2010
New Revision: 49212
URL: https://trac.parrot.org/parrot/changeset/49212
Log:
[ops] Fixed a compilation warning.
Modified:
trunk/compilers/imcc/pbc.c
trunk/compilers/opsc/src/Ops/Trans/C.pm
trunk/include/parrot/oplib.h
trunk/src/ops/core_ops.c
Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c Tue Sep 21 22:06:42 2010 (r49211)
+++ trunk/compilers/imcc/pbc.c Tue Sep 21 22:06:46 2010 (r49212)
@@ -703,11 +703,11 @@
static
opcode_t
bytecode_map_op(PARROT_INTERP, op_info_t *info) {
- int i;
op_lib_t *lib = info->lib;
op_func_t op_func = OP_INFO_OPFUNC(info);
PackFile_ByteCode *bc = interp->code;
PackFile_ByteCode_OpMappingEntry *om;
+ opcode_t i;
for (i = 0; i < bc->op_mapping.n_libs; i++) {
if (lib == bc->op_mapping.libs[i].lib) {
Modified: trunk/compilers/opsc/src/Ops/Trans/C.pm
==============================================================================
--- trunk/compilers/opsc/src/Ops/Trans/C.pm Tue Sep 21 22:06:42 2010 (r49211)
+++ trunk/compilers/opsc/src/Ops/Trans/C.pm Tue Sep 21 22:06:46 2010 (r49212)
@@ -356,7 +356,7 @@
HOP *hops = hop_buckets =
mem_gc_allocate_n_zeroed_typed(interp, [[BS]]op_lib.op_count * 2, HOP );
- size_t i;
+ opcode_t i;
/* store full names */
for (i = 0; i < [[BS]]op_lib.op_count; i++) {
Modified: trunk/include/parrot/oplib.h
==============================================================================
--- trunk/include/parrot/oplib.h Tue Sep 21 22:06:42 2010 (r49211)
+++ trunk/include/parrot/oplib.h Tue Sep 21 22:06:46 2010 (r49212)
@@ -24,14 +24,14 @@
typedef struct op_lib_t {
const char *name;
const char *suffix;
- int core_type;
- int flags;
- int major_version;
- int minor_version;
- int patch_version;
- size_t op_count;
- op_info_t * op_info_table;
- op_func_t * op_func_table;
+ int core_type;
+ int flags;
+ int major_version;
+ int minor_version;
+ int patch_version;
+ opcode_t op_count;
+ op_info_t *op_info_table;
+ op_func_t *op_func_table;
int (*_op_code)(PARROT_INTERP, const char * name, int full);
} op_lib_t;
Modified: trunk/src/ops/core_ops.c
==============================================================================
--- trunk/src/ops/core_ops.c Tue Sep 21 22:06:42 2010 (r49211)
+++ trunk/src/ops/core_ops.c Tue Sep 21 22:06:46 2010 (r49212)
@@ -26194,7 +26194,7 @@
HOP *hops = hop_buckets =
mem_gc_allocate_n_zeroed_typed(interp, core_op_lib.op_count * 2, HOP );
- size_t i;
+ opcode_t i;
/* store full names */
for (i = 0; i < core_op_lib.op_count; i++) {
More information about the parrot-commits
mailing list