!99 Modify defects of util

Merge pull request !99 from 史凯/master
This commit is contained in:
openharmony_ci
2022-02-25 06:23:15 +00:00
committed by Gitee
+1 -1
View File
@@ -62,7 +62,7 @@ namespace OHOS::Util {
napi_value TextDecoder::Decode(napi_value src, bool iflag)
{
uint32_t flags = 0;
flags |= iflag ? 0 : static_cast<uint32_t>(ConverterFlags::FLUSH_FLG);
flags |= (iflag ? 0 : static_cast<uint32_t>(ConverterFlags::FLUSH_FLG));
UBool flush = ((flags & static_cast<uint32_t>(ConverterFlags::FLUSH_FLG))) ==
static_cast<uint32_t>(ConverterFlags::FLUSH_FLG);
napi_typedarray_type type;