Commit bc44c83a authored by Vladimir Malenovsky's avatar Vladimir Malenovsky Committed by Fabian Bauer
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 dd5d38b6
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;
    }