Ignore:
Timestamp:
Apr 18, 2009, 4:36:12 PM (15 years ago)
Author:
nipo
Message:

Sync with trunk, avoid warning about pointer soup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/with_autoconf/src/sc_signal.h

    r20 r24  
    8282        size_t size = (sizeof (T)-1) / sizeof (base_type);
    8383        size_t i = 0;
    84         const base_type *pvalue = (const base_type*)(&value_);
     84        const base_type *pvalue = (const base_type*)(void*)(&value_);
    8585        do {
    8686#if 0
     
    9696        if (sizeof (T) > sizeof (base_type)) {
    9797#if 0
    98     cout << "sizeof (T) = " << sizeof (T) << " (base_type = " << sizeof
    99 (base_type) << "\n";
     98  std::cout << "sizeof (T) = " << sizeof (T)
     99            << " (base_type = " << sizeof (base_type) << "\n";
    100100#endif
    101101                post_multiwrite (pointer_,value_);
     
    171171  typedef T  data_type;
    172172  typedef sc_signal < T >  this_type;
     173
    173174        ///////////
    174175        // Internal
    175176        public: void init ();
    176177        ///////////
     178
    177179//  virtual void update ();
    178180  void check_writer ();
Note: See TracChangeset for help on using the changeset viewer.