Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/src/lib
Modified Files:
Embryo.h
Log Message:
cast correctly between Embryo_Cell and float
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/Embryo.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Embryo.h 25 Sep 2004 14:37:39 -0000 1.6
+++ Embryo.h 13 Oct 2004 19:19:13 -0000 1.7
@@ -49,9 +49,9 @@
#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;
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs