mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1255863 - Followup to fix an assertion. r=hsivonen
This commit is contained in:
parent
c9a80c9abd
commit
44ae48d72a
@ -53,7 +53,7 @@ nsresult nsUnicodeToGB18030::Try4BytesEncoder(char16_t aChar,
|
||||
nsresult res = nsUnicodeEncodeHelper::ConvertByTable(
|
||||
&aChar, &len, aOut, aOutLen, u4BytesGB18030Charset, nullptr,
|
||||
(uMappingTable*) &g_uf_gb18030_4bytes);
|
||||
MOZ_ASSERT(NS_FAILED(res) || ((1 == len) && (4 == *aOutLen)),
|
||||
MOZ_ASSERT((res != NS_OK) || ((1 == len) && (4 == *aOutLen)),
|
||||
"unexpect conversion length");
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user