Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sourav Moitra <[email protected]>
  • Loading branch information
xw19 committed Jan 2, 2025
1 parent 169c00b commit 5287f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocispec/json_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ json_double_to_uint64 (double d, uint64_t *converted)
{
// Safely convert double to uint64_t by checking for potential overflows
if (d >= 4294967296.0) { // Check if value is greater than or equal to 2^32
// TODO: Better solution for converting double to uint64
// TODO: Trying out
*converted = 18446744073709551615UL;
} else {
// Handle smaller values (less than 2^32)
Expand Down

0 comments on commit 5287f46

Please sign in to comment.