Changeset 674


Ignore:
Timestamp:
Apr 26, 2003, 11:37:26 AM (18 years ago)
Author:
luba
Message:
  • examinig first symbol in input expression is corrected
File:
1 edited

Legend:

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

    r649 r674  
    3131
    3232  //добавить для Word проверку первого символа
    33   t++;
     33
     34  if (flag || t->get_type() == type_short_int)
     35    t++;
    3436
    3537  for (; t < e_Exp.get_last(); t++) {
     
    5052      }
    5153#if 0
    52 
    5354    else
    5455    if (t->get_type() == type_word && ((Word*)t)->is_number())
     
    5960#endif
    6061    else
    61       RF_LIB_ERROR("Invalid Argument");
     62      retfail;
    6263  };
    6364  s_Int = ShortInt::create_expr(e_Exp, flag);
Note: See TracChangeset for help on using the changeset viewer.