Changeset 1080


Ignore:
Timestamp:
Jul 31, 2003, 11:32:57 AM (17 years ago)
Author:
luba
Message:
  • creating Integer is added if length of the number is longer than length of ShortInt?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/library/Convert/to_int.cc

    r911 r1080  
    107107  //
    108108  if (len >= len_max)
    109     RF_LIB_ERROR("Argument too large for conversion");
    110  
    111    s_Int = ShortInt::create_expr(s);
     109    s_Int = Integer::create_expr(s);
     110  else
     111    s_Int = ShortInt::create_expr(s);
    112112 
    113113RF_END
    114114}
    115  }
     115}
    116116 
Note: See TracChangeset for help on using the changeset viewer.