mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 964078. r=roc
This commit is contained in:
parent
d571d6ea36
commit
a2056036ca
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user