Skip to content

Cast data size to unsigned int#405

Open
JurgenLB wants to merge 1 commit intoThalhammer:masterfrom
JurgenLB:JurgenLB-patch-2
Open

Cast data size to unsigned int#405
JurgenLB wants to merge 1 commit intoThalhammer:masterfrom
JurgenLB:JurgenLB-patch-2

Conversation

@JurgenLB
Copy link
Contributor

@JurgenLB JurgenLB commented Feb 7, 2026

this is to address some additional warnings for the type conversion.

4 EVP_DigestUpdate warnings (lines 1627, 1667, 1987, 2036):
static_cast(data.size())
to explicitly convert size_t (__int64 on 64-bit Windows) to unsigned int

1 time conversion warning (line 2673):
static_cast<int64_t>(std::llround(as_number()))
to explicitly handle the conversion from long long to int64_t

These conversions are safe because JWT data is always small (< 4GB) or have the same range

kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant