зеркало из https://github.com/mozilla/pjs.git
Attempt to fix IRIX bustage (which may even be correct on the assumption that it's correct to pull in C++ standard headers somehow). The compiler is complaining about ambiguous overload resolution for std::abs.
This commit is contained in:
Родитель
b22bc758d3
Коммит
12d90a3740
|
@ -260,8 +260,8 @@ nsAutoString psfontname;
|
|||
// if a font was found matching this criteria
|
||||
if((gSubstituteFonts[i].mIndex==0) || (!aPrimaryOnly && gSubstituteFonts[i].mIndex>=0)){
|
||||
// give it a score
|
||||
score = abs(aFont.weight-gSubstituteFonts[i].mWeight);
|
||||
score+= abs(aFont.style-gSubstituteFonts[i].mStyle);
|
||||
score = abs(PRInt32(aFont.weight)-PRInt32(gSubstituteFonts[i].mWeight));
|
||||
score+= abs(PRInt32(aFont.style)-PRInt32(gSubstituteFonts[i].mStyle));
|
||||
if(score == 0){
|
||||
curIndex = i;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче