Bug 958596 - Allow gfx logging of long long. r=Bas
☠☠ backed out by 1696efc6eccb ☠ ☠
authorBotond Ballo <botond@mozilla.com>
Wed, 22 Jan 2014 18:38:31 -0500
changeset 170763 8e8db64bbaba7f9620b765c412fbdcc50a57f300
parent 170762 7a16622e6b386cdc526c1a311a1dd784fa7efcec
child 170764 63d96f3e3e42151cf563728599d569210f116928
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersBas
bugs958596
milestone30.0a1
Bug 958596 - Allow gfx logging of long long. r=Bas
gfx/2d/Logging.h
--- a/gfx/2d/Logging.h
+++ b/gfx/2d/Logging.h
@@ -105,20 +105,20 @@ public:
     mMessage.str("");
     mMessage.clear();
   }
 
   Log &operator <<(char aChar) { mMessage << aChar; return *this; }
   Log &operator <<(const std::string &aLogText) { mMessage << aLogText; return *this; }
   Log &operator <<(const char aStr[]) { mMessage << static_cast<const char*>(aStr); return *this; }
   Log &operator <<(bool aBool) { mMessage << (aBool ? "true" : "false"); return *this; }
-  Log &operator <<(int aInt) { mMessage << aInt; return *this; }
-  Log &operator <<(unsigned int aInt) { mMessage << aInt; return *this; }
-  Log &operator <<(long aLong) { mMessage << aLong; return *this; }
-  Log &operator <<(unsigned long aLong) { mMessage << aLong; return *this; }
+  Log &operator <<(int32_t aInt) { mMessage << aInt; return *this; }
+  Log &operator <<(uint32_t aInt) { mMessage << aInt; return *this; }
+  Log &operator <<(int64_t aLong) { mMessage << aLong; return *this; }
+  Log &operator <<(uint64_t aLong) { mMessage << aLong; return *this; }
   Log &operator <<(Float aFloat) { mMessage << aFloat; return *this; }
   Log &operator <<(double aDouble) { mMessage << aDouble; return *this; }
   template <typename T, typename Sub>
   Log &operator <<(const BasePoint<T, Sub>& aPoint)
     { mMessage << "Point(" << aPoint.x << "," << aPoint.y << ")"; return *this; }
   template <typename T, typename Sub>
   Log &operator <<(const BaseSize<T, Sub>& aSize)
     { mMessage << "Size(" << aSize.width << "," << aSize.height << ")"; return *this; }