Bug 1255863 - Followup to fix an assertion. r=hsivonen

This commit is contained in:
Masatoshi Kimura 2016-04-09 17:55:40 +09:00
parent c9a80c9abd
commit 44ae48d72a

View File

@ -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;
}