|
From: SourceForge.net <no...@so...> - 2007-02-09 16:59:40
|
Bugs item #1656248, was opened at 2007-02-09 08:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1656248&group_id=12740 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Error in cashflowvectors if a single cash flow exists Initial Comment: Version: 0.3.14 File: cashflowvectors.cpp Error if a forward starting bond is created and the start date is Saturday and the maturity date is on the following Monday. SCHEDULE only create one cash flow date. Routines ends with an error on row with Date start = schedule.date(0), end = schedule.date(1); My Fix: int indxend = (schedule.size() <= 1) ? 0 : 1; Date start = schedule.date(0), end = schedule.date(indxend); Best regards Thomas Karlström EMAIL: tho...@fr... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1656248&group_id=12740 |