Changeset 375 for trunk


Ignore:
Timestamp:
Mar 19, 2010, 5:02:14 PM (9 years ago)
Author:
ksherdy
Message:

Update 'int' to 'intptr_t' type for 64 bit machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/markup_stats.cxx

    r274 r375  
    8686int comment_length = 0;
    8787int CDATA_start_count = 0;
    88 int CDATA_start_pos = 0;
    89 int CDATA_length = 0;
     88intptr_t CDATA_start_pos = 0;
     89intptr_t CDATA_length = 0;
    9090int CDATA_end_count = 0;
    9191int PI_count = 0;
     
    115115int last_item_start = 0;
    116116int last_item_stop = 0;
    117 int last_buffer_rel_pos = 0;
     117intptr_t last_buffer_rel_pos = 0;
    118118
    119119#define CALC_AVG
     
    138138template<>
    139139inline void Parser_Interface<UTF_8>::CDATA_start_action(unsigned char * CDATA_ptr){
    140         CDATA_start_pos = (int) CDATA_ptr;
     140        CDATA_start_pos = (intptr_t) CDATA_ptr;
    141141        CDATA_start_count +=1;
    142142}
     
    148148       
    149149        #if defined(CALC_AVG)
    150                 CDATA_length += (int) CDATA_end_ptr - CDATA_start_pos;
     150                CDATA_length += (intptr_t)CDATA_end_ptr - CDATA_start_pos;
    151151        #endif
    152152}
Note: See TracChangeset for help on using the changeset viewer.