Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_data.c eet_utils.c Log Message: fix conversion to handle -0x0p+0 (negatives) properly - or at least matching the output. =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -3 -r1.54 -r1.55 --- eet_data.c 25 Sep 2007 18:26:49 -0000 1.54 +++ eet_data.c 25 Sep 2007 23:41:03 -0000 1.55 @@ -402,8 +402,8 @@ eet_data_get_double(void *src, void *src_end, void *dst) { double *d; - long long mantisse; - long exponent; + long long mantisse = 0; + long exponent = 0; char *s, *str, *p; int len; =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_utils.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- eet_utils.c 25 Sep 2007 18:26:49 -0000 1.2 +++ eet_utils.c 25 Sep 2007 23:41:03 -0000 1.3 @@ -73,20 +73,20 @@ sign = -1; str++; } - else if (*str == '0') + if (*str == '0') { str++; if (*str == 'x') str++; else { - fprintf(stderr, "[Eet] Error during conversion\n"); + fprintf(stderr, "[Eet] Error 1 during conversion of '%s'\n", src); return 0; } } else { - fprintf(stderr, "[Eet] Error during conversion\n"); + fprintf(stderr, "[Eet] Error 2 during conversion of '%s'\n", src); return 0; } @@ -108,7 +108,8 @@ mantisse = -mantisse; if (*str != 'p') { - fprintf(stderr, "[Eet] Error during conversion\n"); + fprintf(stderr, "[Eet] Error 3 during conversion '%s'\n", src); + abort(); return 0; } sign = +1; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs