stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: incorrect pass rate for 23.deque.iterators on Windows
Date Tue, 27 Mar 2007 16:58:57 GMT
Farid Zaripov wrote:
[...]
>   The difference between asserts on UNIX and MSVC is because of the
> following lines of the test
> 23.deque.iterators.cpp, line 259:

Thanks for looking into it!

> -----------------------
> #ifndef _RWSTD_NO_REPLACEABLE_NEW_DELETE
> // replacement operator new is expensive, avoid long runtimes
> unsigned rw_opt_nloops = 6;      // for --nloops
> #else
> unsigned rw_opt_nloops = 10;     // for --nloops
> #endif
> -----------------------

Interesting. I would expect fewer loops to mean fewer assertions,
not more.

> 
>   The invalid percents value (44%) have been calculated as (driver.cpp,
> line 1059):
> 
> long (77810809 * 100) / 77810809 == 3486113604 / 77810809 = 44.

I see, it is a case of integer overflow, but it's in the driver
rather than in exec. Let me fix it.

Martin

Mime
View raw message