mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-19 18:23:35 -04:00
Modify defects of util
Deal with a priority problem of ternary operation https://gitee.com/openharmony/js_util_module/issues/I4V6Y1 Signed-off-by: shikai-123 <shikai25@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user