mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
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:
parent
f15c119167
commit
9de5129044
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user