зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
48377143f6
Коммит
3242e91654
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче