зеркало из https://github.com/mozilla/pjs.git
Bug 736898: Avoid signed/unsigned comparisons in tools/profiler, r=bgirard
--HG-- extra : rebase_source : 53eadd48e29fc1aae143b0480bcb573a392e1130
This commit is contained in:
Родитель
5a0ab5fe78
Коммит
0f36d31e14
|
@ -580,7 +580,7 @@ void doSampleStackTrace(ProfileStack *aStack, ThreadProfile &aProfile, TickSampl
|
|||
// Sample
|
||||
// 's' tag denotes the start of a sample block
|
||||
// followed by 0 or more 'c' tags.
|
||||
for (int i = 0; i < aStack->mStackPointer; i++) {
|
||||
for (mozilla::sig_safe_t i = 0; i < aStack->mStackPointer; i++) {
|
||||
if (i == 0) {
|
||||
Address pc = 0;
|
||||
if (sample) {
|
||||
|
|
|
@ -212,7 +212,8 @@ public:
|
|||
if (mQueueClearMarker) {
|
||||
clearMarkers();
|
||||
}
|
||||
if (aMarkerId >= mMarkerPointer) {
|
||||
if (aMarkerId < 0 ||
|
||||
static_cast<mozilla::sig_safe_t>(aMarkerId) >= mMarkerPointer) {
|
||||
return NULL;
|
||||
}
|
||||
return mMarkers[aMarkerId];
|
||||
|
|
Загрузка…
Ссылка в новой задаче