Changeset 747


Ignore:
Timestamp:
May 21, 2003, 7:25:52 PM (18 years ago)
Author:
luba
Message:
  • return type of operator *() in NumIterator? class is corrected
Location:
to-imperative/trunk/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_word.hh

    r743 r747  
    4545  inline int is_number () const;
    4646
    47   inline wchar_t* get_content() const;
    48 
    4947  static Expr create_expr (wchar_t const* _wstr) ;
    5048
     
    6967    inline NumIterator const& operator =(Word const& _word) ;
    7068    inline bool in_bounds () const;
    71     inline const uintptr_t operator*() const;
     69    inline const char operator*() const;
    7270  };
    7371 
  • to-imperative/trunk/runtime/rf_word.ih

    r743 r747  
    9090}
    9191
    92 inline wchar_t* Word::get_content() const {
    93   Header* h = static_cast<Header*>(ptr_data2);
    94   return h->content;
    95 }
    96 
    9792
    9893//first symbol in word is '-' res == -1; '+' res == 1,
     
    155150}
    156151
    157 inline const uintptr_t Word::NumIterator::operator * () const
     152inline const char Word::NumIterator::operator * () const
    158153{
    159154  return *iter - 48;
Note: See TracChangeset for help on using the changeset viewer.