Commit c8e3b2c5 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 4ddd52e7
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2496,11 +2496,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;
    }