From b532778d5d74ab258bedc9aae656211d9bec0995 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 5 Apr 2009 17:25:54 +0800 Subject: [PATCH] Function 'callthis' failes to return value on error. This resulted in a SWIG compile time error: return-statement with no value, in function returning 'double' Signed-off-by: Jonathan "Duke" Leto --- swig/gsl_typemaps.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/gsl_typemaps.i b/swig/gsl_typemaps.i index 999a66d..e025940 100644 --- a/swig/gsl_typemaps.i +++ b/swig/gsl_typemaps.i @@ -54,7 +54,7 @@ sv = hv_fetch(Callbacks, (char*)func, sizeof(func), FALSE ); if (sv == (SV**)NULL) { fprintf(stderr, "Math::GSL(callthis): %d not in Callbacks!\n", func); - return; + return NAN; } PUSHMARK(SP); -- 2.11.4.GIT