[edk2-devel] [PATCH v2 1/3] RedfishPkg/JsonLib: address coverity issue
Nickle Wang via groups.io
nicklew=nvidia.com at groups.io
Wed Mar 29 06:13:40 UTC 2023
Fix implicit conversion issue in JsonLib.
Signed-off-by: Nickle Wang <nicklew at nvidia.com>
Cc: Abner Chang <abner.chang at amd.com>
Cc: Igor Kulchytskyy <igork at ami.com>
Cc: Nick Ramirez <nramirez at nvidia.com>
Reviewed-by: Abner Chang <abner.chang at amd.com>
---
RedfishPkg/Library/JsonLib/JsonLib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/RedfishPkg/Library/JsonLib/JsonLib.c b/RedfishPkg/Library/JsonLib/JsonLib.c
index 5d75882004..69f2455c00 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);
}
--
2.40.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#102101): https://edk2.groups.io/g/devel/message/102101
Mute This Topic: https://groups.io/mt/97922956/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list