From: Brian P. <pcb...@us...> - 2005-10-25 16:01:29
|
Update of /cvsroot/sashimi/trans_proteomic_pipeline/COVERAGE In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19954/trans_proteomic_pipeline/COVERAGE Modified Files: sysdepend.h Log Message: fixed improperly implemented myfabs() macro - lack of parentheses in the expression caused macro expansion different from what the author intended. The question stands as to why there's a macro here at all... fabs() works just fine AFAIK. Index: sysdepend.h =================================================================== RCS file: /cvsroot/sashimi/trans_proteomic_pipeline/COVERAGE/sysdepend.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sysdepend.h 20 Jun 2005 17:38:49 -0000 1.3 --- sysdepend.h 25 Oct 2005 16:01:21 -0000 1.4 *************** *** 41,49 **** #define bDebug False ! #define abs(a) (a < 0.0 ? a * -1.0 : a) ! #define DABS(a) (a < 0.0 ? a * -1.0 : a) ! #define MIN(a,b) (a < b ? a : b) ! #define MAX(a,b) (a > b ? a : b) #endif // SYDEPEND_INC --- 41,49 ---- #define bDebug False ! #define abs(a) ((a) < 0.0 ? (a) * -1.0 : (a)) ! #define DABS(a) ((a) < 0.0 ? (a) * -1.0 : (a)) ! #define MIN(a,b) ((a) < (b) ? (a) : (b)) ! #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif // SYDEPEND_INC |