Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7300 in orxonox.OLD for trunk/src/lib/util/executor


Ignore:
Timestamp:
Apr 16, 2006, 7:30:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the most evil for (int i=0; i <'=' …) bug ever…

Location:
trunk/src/lib/util/executor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/executor/executor.cc

    r7221 r7300  
    5353
    5454  this->paramCount = 0;
    55   for (unsigned int i = 0; i < FUNCTOR_MAX_ARGUMENTS; i++)
     55  for (unsigned int i = 0; i <= FUNCTOR_MAX_ARGUMENTS; i++)
    5656  {
    57     if (this->defaultValue[i] == MT_NULL)
     57    if (this->defaultValue[i] == MT_NULL || i == FUNCTOR_MAX_ARGUMENTS)
    5858    {
    5959      this->paramCount = i;
  • trunk/src/lib/util/executor/executor.h

    r7221 r7300  
    121121
    122122#define ExecutorFunctionPoiter5(t1, t2, t3, t4, t5) \
    123   void EXECUTORINCLASS(*functionPointer_5_##t1##_##t2##_##t3##_##t4##_##t5)(t1##_TYPE, t2##_TYPE, t3##_TYPE, t4##_TYPE, t5##_TYPE); \
     123  void EXECUTORINCLASS(*functionPointer_5_##t1##_##t2##_##t3##_##t4##_##t5)(t1##_TYPE, t2##_TYPE, t3##_TYPE, t4##_TYPE, t5##_TYPE);
    124124
    125125
     
    218218
    219219
    220 
    221 //////////\//////////
     220/////////////////////
    222221// DYNAMIC FUNCTOR //
    223 ///////////\/////////
     222/////////////////////
    224223#ifdef FUNCTOR_LIST
    225224#undef FUNCTOR_LIST
Note: See TracChangeset for help on using the changeset viewer.