Skip to content

"'argument': conversion from 'size_t' to 'long', possible loss of data" Windows build x64 #140

Closed
@TaeZStkyoht

Description

@TaeZStkyoht

My OS is Windows and I'm using the latest version (0.5.0) that vcpkg provides. There was no warning on the previous version (0.4.0) but this version has. If I build x86 then there is no problem; however, If I build x64 (both Debug and Release) then it gives warnings below and it's really annoying:

"blabla\vcpkg\installed\x64-windows\include\jwt-cpp\jwt.h(441,1): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data"

The problem is in the 'convert_base64_der_to_pem' function's line:

std::unique_ptr<X509, decltype(&X509_free)> cert(d2i_X509(NULL, &c_str, decodedStr.size()), X509_free);

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions