Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan
This commit is contained in:
@@ -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(", &rem, num, rad);
|
||||
|
||||
Reference in New Issue
Block a user