Bug 964078. r=roc

This commit is contained in:
Mats Palmgren 2014-01-28 09:15:24 -05:00
parent d571d6ea36
commit a2056036ca

View File

@ -7,6 +7,7 @@
#include "nsBulletFrame.h"
#include "mozilla/MathAlgorithms.h"
#include "nsCOMPtr.h"
#include "nsGkAtoms.h"
#include "nsGenericHTMLElement.h"
@ -897,18 +898,16 @@ static const CJKIdeographicData gDataTradChineseFormal = {
false // informal
};
static const bool CJKIdeographicToText(int32_t ordinal, nsString& result,
static const bool CJKIdeographicToText(int32_t aOrdinal, nsString& result,
const CJKIdeographicData& data)
{
char16_t buf[NUM_BUF_SIZE];
int32_t idx = NUM_BUF_SIZE;
int32_t pos = 0;
bool isNegative = (ordinal < 0);
bool needZero = (ordinal == 0);
bool isNegative = (aOrdinal < 0);
bool needZero = (aOrdinal == 0);
int32_t unitidx = 0, unit10Kidx = 0;
if (isNegative) {
ordinal = -ordinal;
}
uint32_t ordinal = mozilla::Abs(aOrdinal);
do {
unitidx = pos % 4;
if (unitidx == 0) {