Bug 737667 - GCC build warning: sps_sampler.h: In member function ?void ProfileStack::push(const char*)?: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (also in addMarker) r=ehsan

--HG--
extra : rebase_source : bdd6093ee36e25fb33b59873be6c1c0068574869
This commit is contained in:
Jacek Caban 2012-03-21 17:06:01 +01:00
Родитель 48377143f6
Коммит 3242e91654
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -184,7 +184,7 @@ public:
if (!aMarker) {
return; //discard
}
if (mMarkerPointer == mozilla::ArrayLength(mMarkers)) {
if (size_t(mMarkerPointer) == mozilla::ArrayLength(mMarkers)) {
return; //array full, silently drop
}
mMarkers[mMarkerPointer] = aMarker;
@ -213,7 +213,7 @@ public:
void push(const char *aName)
{
if (mStackPointer >= mozilla::ArrayLength(mStack)) {
if (size_t(mStackPointer) >= mozilla::ArrayLength(mStack)) {
mDroppedStackEntries++;
return;
}