X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhuman.c;h=f024c73ea079f93b7f8b9a3a1362e8db91454607;hb=e1bb3dab9a2dca414eab231c33afd3fad19e7924;hp=dbf536b1efdd630c151934c2ecd4ca2dda49428f;hpb=fd6c022736a6618466bc5561361aa3db08a3f0a0;p=gnulib.git diff --git a/lib/human.c b/lib/human.c index dbf536b1e..f024c73ea 100644 --- a/lib/human.c +++ b/lib/human.c @@ -300,8 +300,8 @@ human_readable (uintmax_t n, char *buf, int opts, { do { - unsigned r10 = (amt % base) * 10 + tenths; - unsigned r2 = (r10 % base) * 2 + (rounding >> 1); + unsigned int r10 = (amt % base) * 10 + tenths; + unsigned int r2 = (r10 % base) * 2 + (rounding >> 1); amt /= base; tenths = r10 / base; rounding = (r2 < base