"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "strings/apr_snprintf.c" between
apr-1.6.5.tar.bz2 and apr-1.7.0.tar.bz2

About: APR (Apache Portable Runtime) project offers software libraries that provide a predictable and consistent interface to underlying platform-specific implementations (APR core library).

apr_snprintf.c  (apr-1.6.5.tar.bz2):apr_snprintf.c  (apr-1.7.0.tar.bz2)
skipping to change at line 103 skipping to change at line 103
if (ndigits >= NDIG - 1) if (ndigits >= NDIG - 1)
ndigits = NDIG - 2; ndigits = NDIG - 2;
r2 = 0; r2 = 0;
*sign = 0; *sign = 0;
p = &buf[0]; p = &buf[0];
if (arg < 0) { if (arg < 0) {
*sign = 1; *sign = 1;
arg = -arg; arg = -arg;
} }
arg = modf(arg, &fi); arg = modf(arg, &fi);
p1 = &buf[NDIG];
/* /*
* Do integer part * Do integer part
*/ */
if (fi != 0) { if (fi != 0) {
p1 = &buf[NDIG]; p1 = &buf[NDIG];
while (p1 > &buf[0] && fi != 0) { while (p1 > &buf[0] && fi != 0) {
fj = modf(fi / 10, &fi); fj = modf(fi / 10, &fi);
*--p1 = (int) ((fj + .03) * 10) + '0'; *--p1 = (int) ((fj + .03) * 10) + '0';
r2++; r2++;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)