From 159b8d0412c4534bb917c784c148766d7f71ba63 Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Wed, 13 Oct 2004 19:19:13 +0000 Subject: [PATCH] cast correctly between Embryo_Cell and float SVN revision: 11867 --- legacy/embryo/src/lib/Embryo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/embryo/src/lib/Embryo.h b/legacy/embryo/src/lib/Embryo.h index 9b226caf0e..9d3101896a 100644 --- a/legacy/embryo/src/lib/Embryo.h +++ b/legacy/embryo/src/lib/Embryo.h @@ -49,9 +49,9 @@ extern "C" { #define EMBRYO_PROGRAM_FAIL 0 /** Float to Embryo_Cell */ -#define EMBRYO_FLOAT_TO_CELL(f) ( *((Embryo_Cell*)&f)) +#define EMBRYO_FLOAT_TO_CELL(f) (Embryo_Cell) f /** Embryo_Cell to float */ -#define EMBRYO_CELL_TO_FLOAT(c) ( *((float*)&c)) +#define EMBRYO_CELL_TO_FLOAT(c) (float) c typedef unsigned int Embryo_UCell; typedef int Embryo_Cell;