Changeset 292 for trunk/thune/eval.c

Show
Ignore:
Timestamp:
10/04/06 20:41:29 (2 years ago)
Author:
krobillard
Message:

Thune - int! to works on decimal!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/eval.c

    r282 r292  
    20022002        case UT_INT: 
    20032003            if( ur_is(val, UT_CHAR) || ur_is(val, UT_LOGIC) ) 
     2004            { 
    20042005                ur_type(val) = UT_INT; 
     2006            } 
     2007            else if( ur_is(val, UT_DECIMAL) ) 
     2008            { 
     2009                ur_initType(val, UT_INT); 
     2010                ur_int(val) = (int32_t) ur_decimal(val); 
     2011            } 
    20052012            break; 
    20062013