Skip to content

Fix sodium build error in x64#247

Open
valverl wants to merge 2 commits intomas-bandwidth:mainfrom
valverl:zero_extending_sodium_warning
Open

Fix sodium build error in x64#247
valverl wants to merge 2 commits intomas-bandwidth:mainfrom
valverl:zero_extending_sodium_warning

Conversation

@valverl
Copy link
Copy Markdown

@valverl valverl commented Mar 24, 2026

We're getting the following error when building for x64 on Windows via the VS solution generated by premake:

..\sodium_codecs.c(175,12): error C2220: the following warning is treated as an error
..\sodium_codecs.c(175,12): warning C4319: '~': zero extending 'unsigned int' to 'const size_t' of greater size

This commit integrates the fix from the upstream repo. See jedisct1/libsodium#1526.

valverl added 2 commits March 24, 2026 09:54
…ED_LEN to avoid warning about zero extending the result of a 'NOT' operation
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