star-mc

Parallel estimation of Monte Carlo integrators
git clone git://git.meso-star.fr/star-mc.git
Log | Files | Refs | README | LICENSE

commit 2efd7d71eb5a2d3b500b95482963342205a6c6e0
parent 75f50295b7f4c97eee9abb7a8f148db670e031b3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 15 Jul 2015 08:36:31 +0200

Update the SMC_<FLOAT|DOUBLE> syntactic sugar macros

Cast in <float|double>* rather than in const <float|double>*

Diffstat:
Mcmake/CMakeLists.txt | 2+-
Msrc/smc.h | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -59,7 +59,7 @@ include(rcmake_runtime) # Configure and define targets ################################################################################ set(VERSION_MAJOR 0) -set(VERSION_MINOR 1) +set(VERSION_MINOR 2) set(VERSION_PATCH 0) set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) diff --git a/src/smc.h b/src/smc.h @@ -105,8 +105,8 @@ SMC_API const struct smc_type smc_float; SMC_API const struct smc_type smc_double; /* Syntactic sugar macros */ -#define SMC_FLOAT(Val) (*(const float*)(Val)) -#define SMC_DOUBLE(Val) (*(const double*)(Val)) +#define SMC_FLOAT(Val) (*(float*)(Val)) +#define SMC_DOUBLE(Val) (*(double*)(Val)) /******************************************************************************* * API deinition