Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan

This commit is contained in:
Andrew Quartey
2012-10-03 10:13:18 -04:00
parent 94b97094aa
commit 0e83c587be
7 changed files with 8 additions and 8 deletions

View File

@@ -278,7 +278,7 @@ static int cvt_ll(SprintfState *ss, int64_t num, int width, int prec,
int64_t rad;
/* according to the man page this needs to happen */
if ((prec == 0) && (LL_IS_ZERO(num))) {
if (prec == 0 && num == 0) {
return 0;
}
@@ -290,7 +290,7 @@ static int cvt_ll(SprintfState *ss, int64_t num, int width, int prec,
LL_I2L(rad, radix);
cvt = &cvtbuf[0] + ELEMENTS_OF(cvtbuf);
digits = 0;
while (!LL_IS_ZERO(num)) {
while (num != 0) {
int32_t digit;
int64_t quot, rem;
LL_UDIVMOD(&quot, &rem, num, rad);