Changeset 257 for trunk/thune/files.c

Show
Ignore:
Timestamp:
08/28/06 15:52:42 (2 years ago)
Author:
krobillard
Message:

Thune - size? and print now handle int64!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/files.c

    r232 r257  
    131131UR_CALL( uc_sizeQ ) 
    132132{ 
    133     //uint64_t size; 
    134133    const char* cp; 
    135     int size; 
     134    long long size; 
    136135 
    137136    UR_CALL_UNUSED_TH 
     
    145144            ur_setNone(tos); 
    146145        } 
     146        else if( size > INT32_MAX ) 
     147        { 
     148            ur_initType(tos, UT_INT64); 
     149            ur_int64(tos) = size; 
     150        } 
    147151        else 
    148152        { 
    149153            ur_initType(tos, UT_INT); 
    150             ur_int(tos) = size; 
     154            ur_int(tos) = (int) size; 
    151155        } 
    152156    }