Commit 43c9e4aa authored by Vladimir Malenovsky's avatar Vladimir Malenovsky Committed by emerit
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 dd3578b2
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;
    }