Bug 981607 - Ensure that Log may handle both long and long long. r=botond
authorJacek Caban <jacek@codeweavers.com>
Fri, 14 Mar 2014 14:05:47 +0100
changeset 190850 18d9ef6053d1180ff2d079b38dc2d2a9c460782d
parent 190849 3b11907b6a972e53b90f16fc6362bcbdfbb3d16f
child 190851 74ba454a18212a62e73a77826c770658a5e8ff35
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs981607
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 981607 - Ensure that Log may handle both long and long long. r=botond
gfx/2d/Logging.h
--- a/gfx/2d/Logging.h
+++ b/gfx/2d/Logging.h
@@ -105,20 +105,22 @@ 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 <<(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 <<(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 <<(long long aLong) { mMessage << aLong; return *this; }
+  Log &operator <<(unsigned long long 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; }