Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo

This commit is contained in:
Nathan Froyd
2013-05-01 16:55:13 -04:00
parent a8c98e44fe
commit d80f045a6c
57 changed files with 344 additions and 319 deletions

View File

@@ -177,7 +177,7 @@ ValueFitsInInt32(const Value &v, int32_t *pi)
*pi = v.toInt32();
return true;
}
return v.isDouble() && MOZ_DOUBLE_IS_INT32(v.toDouble(), pi);
return v.isDouble() && mozilla::DoubleIsInt32(v.toDouble(), pi);
}
/*
@@ -198,7 +198,7 @@ IsDefinitelyIndex(const Value &v, uint32_t *indexp)
}
int32_t i;
if (v.isDouble() && MOZ_DOUBLE_IS_INT32(v.toDouble(), &i) && i >= 0) {
if (v.isDouble() && mozilla::DoubleIsInt32(v.toDouble(), &i) && i >= 0) {
*indexp = uint32_t(i);
return true;
}