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:
dbaron%dbaron.org 2004-02-22 07:06:55 +00:00
Родитель b22bc758d3
Коммит 12d90a3740
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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;