fix cylinder rounding in ptgen
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches / 170-arm_gcc41.patch
1 diff -ur uClibc-0.9.28/ldso/include/dl-string.h uClibc-0.9.28-owrt/ldso/include/dl-string.h
2 --- uClibc-0.9.28/ldso/include/dl-string.h 2005-08-18 00:49:41.000000000 +0200
3 +++ uClibc-0.9.28-owrt/ldso/include/dl-string.h 2006-09-11 11:42:08.000000000 +0200
4 @@ -228,7 +228,8 @@
5 char temp;
6 do_rem(temp, i, 10);
7 *--p = '0' + temp;
8 - i /= 10;
9 + i /= 2;
10 + i *= -(-1ul / 5ul);
11 } while (i > 0);
12 return p;
13 }