cast correctly between Embryo_Cell and float

SVN revision: 11867
This commit is contained in:
tsauerbeck 2004-10-13 19:19:13 +00:00 committed by tsauerbeck
parent 432cc2a13d
commit 159b8d0412
1 changed files with 2 additions and 2 deletions

View File

@ -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;