Changeset 1008 in svn


Ignore:
Timestamp:
2012-07-19T17:25:07+02:00 (3 years ago)
Author:
Xuefer
Message:

kill signed warning

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_coverager/xc_coverager.c

    r1006 r1008  
    136136            }
    137137
    138             for (; len >= sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) {
     138            for (; len >= (int) sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) {
    139139                if (zend_hash_index_find(cov, p[0], (void**)&phits) == SUCCESS) {
    140140                    if (p[1] == -1) {
     
    533533    }
    534534
    535     for (; len >= sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) {
     535    for (; len >= (int) sizeof(long) * 2; len -= sizeof(long) * 2, p += 2) {
    536536        add_index_long(return_value, p[0], p[1] < 0 ? 0 : p[1]);
    537537    }
  • trunk/mod_optimizer/xc_optimizer.c

    r1003 r1008  
    2929#endif
    3030
    31 typedef int bbid_t;
    32 enum {
    33     BBID_INVALID = -1
    34 };
     31typedef zend_uint bbid_t;
     32#define BBID_INVALID ((bbid_t) -1)
    3533/* {{{ basic block */
    3634typedef struct _bb_t {
     
    4846#endif
    4947
    50     int        opnum; /* opnum after joining basic block */
     48    zend_uint  opnum; /* opnum after joining basic block */
    5149} bb_t;
    5250/* }}} */
     
    5856static int op_array_convert_switch(zend_op_array *op_array) /* {{{ */
    5957{
    60     int i;
     58    zend_uint i;
    6159
    6260    if (op_array->brk_cont_array == NULL) {
     
    445443
    446444    for (i = 0; i < op_array->last_try_catch; i ++) {
    447         int j;
     445        zend_uint j;
    448446        zend_try_catch_element *e = &op_array->try_catch_array[i];
    449447        for (j = e->try_op; j < e->catch_op; j ++) {
Note: See TracChangeset for help on using the changeset viewer.