Commit 9e23f5d5 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

fix sudden increase of complexity due to incorrect type (long instead of...

fix sudden increase of complexity due to incorrect type (long instead of unsigned int) in the BASOP counter reset function
parent e075a8cf
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2199,19 +2199,19 @@ long DeltaWeightedOperation( void )
}

/* Resets the current BASOP WMOPS counter */
void Reset_BASOP_WMOPS_counter( void )
void Reset_BASOP_WMOPS_counter( unsigned int counterId )
{
    int i;
    long *ptr;
    unsigned int *ptr;

    /* clear the current BASOP operation counter before new frame begins */
    ptr = (long *) &multiCounter[currCounter];
    for ( i = 0; i < (int) ( sizeof( multiCounter[currCounter] ) / sizeof( long ) ); i++ )
    /* reset the current BASOP operation counter */
    ptr = (unsigned int *) &multiCounter[counterId];
    for ( i = 0; i < (int) (sizeof(BASIC_OP) / sizeof(unsigned int)); i++ )
    {
        *ptr++ = 0;
    }

    wmops[currCounter].LastWOper = 0;
    wmops[counterId].LastWOper = 0;

    return;
}