diff options
author | Nickle Wang <nicklew@nvidia.com> | 2023-03-27 22:09:00 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-29 09:22:35 +0000 |
commit | c2abf77116df96e1202cd132230a0c9031e1016f (patch) | |
tree | 37a8d4eaeeb1507669ae48b8d063d81a411302b8 /RedfishPkg/Library/JsonLib/JsonLib.c | |
parent | 5eb3d1bcc16fb7dfd0c972bf71278e2c85dfc1ff (diff) | |
download | edk2-c2abf77116df96e1202cd132230a0c9031e1016f.zip edk2-c2abf77116df96e1202cd132230a0c9031e1016f.tar.gz edk2-c2abf77116df96e1202cd132230a0c9031e1016f.tar.bz2 |
RedfishPkg/JsonLib: address coverity issue
Fix implicit conversion issue in JsonLib.
Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
Diffstat (limited to 'RedfishPkg/Library/JsonLib/JsonLib.c')
-rw-r--r-- | RedfishPkg/Library/JsonLib/JsonLib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RedfishPkg/Library/JsonLib/JsonLib.c b/RedfishPkg/Library/JsonLib/JsonLib.c index 5d75882..69f2455 100644 --- a/RedfishPkg/Library/JsonLib/JsonLib.c +++ b/RedfishPkg/Library/JsonLib/JsonLib.c @@ -7,6 +7,7 @@ Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -1112,5 +1113,5 @@ JsonGetType ( IN EDKII_JSON_VALUE JsonValue
)
{
- return ((json_t *)JsonValue)->type;
+ return (EDKII_JSON_TYPE)(((json_t *)JsonValue)->type);
}
|