Skip to content

Conversation

@JurgenLB
Copy link
Contributor

Added checks to ensure sizes fit into int before casting.

I made these changes to solve AppVeyor warnings from Building Domoticz.

The third parameter (len) is expected to be of type int in OpenSSL's function signature:
int BIO_write(BIO *b, const void *data, int dlen);

AppVeyor

The Last Warning is from commit "71c3d36"
if (get_type() == json::type::number) return system_clock::from_time_t(std::round(as_number()));

But this is changed in the last master to;
if (get_type() == json::type::number) return date(std::chrono::seconds(std::llround(as_number())));

so this is probably already solved.

Kind Regards

Added checks to ensure sizes fit into int before casting.
@Thalhammer Thalhammer merged commit b0ea29a into Thalhammer:master Dec 29, 2025
58 of 59 checks passed
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.

2 participants