summaryrefslogtreecommitdiffstats
path: root/RedfishPkg/Library/JsonLib/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'RedfishPkg/Library/JsonLib/load.c')
-rw-r--r--RedfishPkg/Library/JsonLib/load.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/RedfishPkg/Library/JsonLib/load.c b/RedfishPkg/Library/JsonLib/load.c
index 958c3ea8c5..1a3b4a6e6a 100644
--- a/RedfishPkg/Library/JsonLib/load.c
+++ b/RedfishPkg/Library/JsonLib/load.c
@@ -5,6 +5,7 @@
* it under the terms of the MIT license. See LICENSE for details.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+ Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent AND MIT
*/
@@ -717,8 +718,8 @@ lex_scan_number (
goto out;
}
- lex->token = TOKEN_REAL;
- lex->value.real = doubleval;
+ lex->token = TOKEN_INTEGER;
+ lex->value.integer = doubleval;
return 0;
out: