From b3729421aead56f598b68cd2069c7b33b40e330c Mon Sep 17 00:00:00 2001 From: Julien Nabet <serval2412@yahoo.fr> Date: Wed, 13 Feb 2013 00:00:32 +0100 Subject: Some cppcheck cleaning Change-Id: I3d515fabc272e5c14f2e2779da1c43f92514f290 --- scaddins/source/pricing/black_scholes.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scaddins') 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; -- cgit