Index: /trunk/const_string.c
===================================================================
--- /trunk/const_string.c	(revision 19)
+++ /trunk/const_string.c	(revision 20)
@@ -25,5 +25,5 @@
 };
 
-int xc_get_op_type_count()
+zend_uchar xc_get_op_type_count()
 {
 	return sizeof(op_type_names) / sizeof(op_type_names[0]);
@@ -71,5 +71,5 @@
 };
 
-int xc_get_data_type_count()
+zend_uchar xc_get_data_type_count()
 {
 	return sizeof(data_type_names) / sizeof(data_type_names[0]);
@@ -102,5 +102,5 @@
 #endif
 
-int xc_get_opcode_count()
+zend_uchar xc_get_opcode_count()
 {
 	return sizeof(xc_opcode_names) / sizeof(xc_opcode_names[0]);
Index: /trunk/const_string.h
===================================================================
--- /trunk/const_string.h	(revision 19)
+++ /trunk/const_string.h	(revision 20)
@@ -1,8 +1,8 @@
 #include "php.h"
 
-int xc_get_op_type_count();
+zend_uchar xc_get_op_type_count();
 const char *xc_get_op_type(zend_uchar op_type);
-int xc_get_data_type_count();
+zend_uchar xc_get_data_type_count();
 const char *xc_get_data_type(zend_uchar data_type);
-int xc_get_opcode_count();
+zend_uchar xc_get_opcode_count();
 const char *xc_get_opcode(zend_uchar opcode);
Index: /trunk/opcode_spec.c
===================================================================
--- /trunk/opcode_spec.c	(revision 19)
+++ /trunk/opcode_spec.c	(revision 20)
@@ -13,5 +13,5 @@
 #include "opcode_spec_def.h"
 
-int xc_get_opcode_spec_count()
+zend_uchar xc_get_opcode_spec_count()
 {
 	return sizeof(xc_opcode_spec) / sizeof(xc_opcode_spec[0]);
@@ -31,5 +31,5 @@
 static const char *xc_op_spec[] = { OPSPECS(OPSPECS_DEF_NAME) };
 
-int xc_get_op_spec_count()
+zend_uchar xc_get_op_spec_count()
 {
 	return sizeof(xc_op_spec) / sizeof(xc_op_spec[0]);
Index: /trunk/opcode_spec.h
===================================================================
--- /trunk/opcode_spec.h	(revision 19)
+++ /trunk/opcode_spec.h	(revision 20)
@@ -39,5 +39,5 @@
 
 const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode);
-int xc_get_opcode_spec_count();
-int xc_get_op_spec_count();
+zend_uchar xc_get_opcode_spec_count();
+zend_uchar xc_get_op_spec_count();
 const char *xc_get_op_spec(zend_uchar spec);
Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 19)
+++ /trunk/xcache.c	(revision 20)
@@ -830,5 +830,5 @@
 	typedef struct {
 		const char *prefix;
-		int (*getsize)();
+		zend_uchar (*getsize)();
 		const char *(*get)(zend_uchar i);
 	} xc_meminfo_t;
@@ -841,5 +841,5 @@
 	};
 	xc_meminfo_t* p;
-	int i;
+	zend_uchar i, count;
 	char const_name[96];
 	int const_name_len;
@@ -847,5 +847,6 @@
 
 	for (p = nameinfos; p->getsize; p ++) {
-		for (i = p->getsize() - 1; i >= 0; i --) {
+		count = p->getsize();
+		for (i = 0; i < count; i ++) {
 			const char *name = p->get(i);
 			if (!name) continue;
