Commit 0462c130 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 d67e2c9d
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2499,11 +2499,11 @@ long DeltaWeightedOperation( unsigned int CounterId )
void Reset_BASOP_WMOPS_counter( unsigned int counterId )
{
    int i;
    long *ptr;
    unsigned int *ptr;

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