Commit 66c4ce5f authored by Vitaly Chikunov's avatar Vitaly Chikunov Committed by Dmitry Belyavskiy
Browse files

MSVC: Replace variable-length automatic arrays with alloca

MSVC is not C99 compatible[1]. Errors:

  test_ciphers.c(312,25): error C2057: expected constant expression
  test_ciphers.c(312,25): error C2466: cannot allocate an array of constant size 0
  test_ciphers.c(312,26): error C2133: 'c': unknown size

Link: https://docs.microsoft.com/en-us/cpp/c-language/ansi-conformance


Signed-off-by: default avatarVitaly Chikunov <vt@altlinux.org>
parent 55f0eb1b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment