diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 00:00:32 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 00:00:47 +0100 |
commit | b3729421aead56f598b68cd2069c7b33b40e330c (patch) | |
tree | aebd9f3ba9eec0ead9fa185db7820c50b62e4494 /scaddins | |
parent | 8803b1faf59ab42a9d55fd88127201e5dbf01a36 (diff) |
Some cppcheck cleaning
Change-Id: I3d515fabc272e5c14f2e2779da1c43f92514f290
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/pricing/black_scholes.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scaddins/source/pricing/black_scholes.cxx b/scaddins/source/pricing/black_scholes.cxx index f99906e03fdb..8086938cb547 100644 --- a/scaddins/source/pricing/black_scholes.cxx +++ b/scaddins/source/pricing/black_scholes.cxx @@ -185,7 +185,7 @@ double bincash(double S, double vol, double rd, double rf, val = -pm*dnorm(d2)*sqrt(tau)/vol; break; default: - printf("bincash: greek %ui not implemented\n", greeks ); + printf("bincash: greek %d not implemented\n", greeks ); abort(); } } @@ -286,7 +286,7 @@ double binasset(double S, double vol, double rd, double rf, val = -tau*S*pnorm(pm*d1) - pm*S*dnorm(d1)*sqrt(tau)/vol; break; default: - printf("binasset: greek %ui not implemented\n", greeks ); + printf("binasset: greek %d not implemented\n", greeks ); abort(); } } @@ -652,7 +652,7 @@ double barrier_term(double S, double vol, double rd, double rf, ); break; default: - printf("barrier_term: greek %ui not implemented\n", greek ); + printf("barrier_term: greek %d not implemented\n", greek ); abort(); } return val; @@ -708,7 +708,7 @@ double barrier_double_term( double S, double vol, double rd, double rf, barrier_term(S,vol,rd,rf,tau,K,B1,B2,sc,pc,fd,types::Value); break; default: - printf("barrier_double_term: greek %ui not implemented\n", greek ); + printf("barrier_double_term: greek %d not implemented\n", greek ); abort(); } return val; |