Schedule possible (small) bug

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Schedule possible (small) bug

Luca Billi
Hi,

I just bumped into this.
In the Schedule() constructor in ql/time/schedule.cpp, it seems that,
if

rule_ == DateGeneration::Zero;
and
endOfMonth == true;


at line 323:
[...]
if (endOfMonth && calendar.isEndOfMonth(seed)) {
            // adjust to end of month
            if (convention == Unadjusted) {
[...]

the variable "seed" is used without having been initialized.

Luca

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev