Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update C code for compatibility with the MSVC compiler #949

Merged
merged 4 commits into from
Nov 16, 2023
Merged

Conversation

krahets
Copy link
Owner

@krahets krahets commented Nov 16, 2023

Avoid Variable-Length Arrays (VLAs): MSVC does not support VLAs. Instead, use dynamic memory allocation or fixed-size arrays.

Replace VLA with malloc to make C code
compatible with cl compiler on Windows.
@krahets krahets added bug Bug fixes code Code-related labels Nov 16, 2023
@krahets krahets merged commit f7c41b6 into main Nov 16, 2023
7 checks passed
@krahets krahets deleted the dev branch November 16, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes code Code-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant