Bug 792581 - part 4: Replace LL_GE_ZERO macro with standard relation. r=ehsan
authorAndrew Quartey <andrew.quartey@gmail.com>
Wed, 03 Oct 2012 10:13:19 -0400
changeset 109178 bb806f6be5d0d995d910ecae9bb9690fa77d513a
parent 109177 ee5a3b45e378737cdc3bd2df00a13aff9f841acc
child 109179 586070a8d3f1001aa5173574102cdc4f49e88480
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersehsan
bugs792581
milestone18.0a1
Bug 792581 - part 4: Replace LL_GE_ZERO macro with standard relation. r=ehsan
content/xul/templates/src/nsXULTemplateQueryProcessorRDF.cpp
netwerk/protocol/http/nsHttpResponseHead.cpp
xpcom/glue/nsTextFormatter.cpp
--- a/content/xul/templates/src/nsXULTemplateQueryProcessorRDF.cpp
+++ b/content/xul/templates/src/nsXULTemplateQueryProcessorRDF.cpp
@@ -691,17 +691,17 @@ nsXULTemplateQueryProcessorRDF::CompareR
                 l->GetValue(&ldate);
                 r->GetValue(&rdate);
 
                 int64_t delta;
                 LL_SUB(delta, ldate, rdate);
 
                 if (delta == 0)
                     *aResult = 0;
-                else if (LL_GE_ZERO(delta))
+                else if (delta >= 0)
                     *aResult = 1;
                 else
                     *aResult = -1;
             }
 
             return NS_OK;
         }
     }
--- a/netwerk/protocol/http/nsHttpResponseHead.cpp
+++ b/netwerk/protocol/http/nsHttpResponseHead.cpp
@@ -32,17 +32,17 @@ nsHttpResponseHead::SetHeader(nsHttpAtom
 
     return NS_OK;
 }
 
 void
 nsHttpResponseHead::SetContentLength(int64_t len)
 {
     mContentLength = len;
-    if (!LL_GE_ZERO(len)) // < 0
+    if (len < 0)
         mHeaders.ClearHeader(nsHttp::Content_Length);
     else
         mHeaders.SetHeader(nsHttp::Content_Length, nsPrintfCString("%lld", len));
 }
 
 void
 nsHttpResponseHead::Flatten(nsACString &buf, bool pruneTransients)
 {
--- a/xpcom/glue/nsTextFormatter.cpp
+++ b/xpcom/glue/nsTextFormatter.cpp
@@ -1015,17 +1015,17 @@ static int dosprintf(SprintfState *ss, c
 		rv = cvt_l(ss, u.l, width, prec, radix, type, flags, hexp);
 		if (rv < 0) {
 		    return rv;
 		}
 		break;
 
             case TYPE_INT64:
 		u.ll = va_arg(ap, int64_t);
-		if (!LL_GE_ZERO(u.ll)) {
+		if (u.ll < 0) {
 		    LL_NEG(u.ll, u.ll);
 		    flags |= _NEG;
 		}
 		goto do_longlong;
             case TYPE_UINT64:
 		u.ll = va_arg(ap, uint64_t);
             do_longlong:
 		rv = cvt_ll(ss, u.ll, width, prec, radix, type, flags, hexp);