From 18749eac964af9c79cbe26c50ac3840c2bfa0b02 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Mon, 23 Oct 2023 17:15:10 -0400 Subject: [PATCH] SWDEV-428634 - Fix vla array in hip-tests Change-Id: I98891d79ac0b141fb0ffda28ffda3dcb3e65c326 [ROCm/hip-tests commit: 03b6ca735f1ef6c6617246786399452bb367ad59] --- projects/hip-tests/catch/include/hip_test_context.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/include/hip_test_context.hh b/projects/hip-tests/catch/include/hip_test_context.hh index 874a3e7c81..8e06c3fbb8 100644 --- a/projects/hip-tests/catch/include/hip_test_context.hh +++ b/projects/hip-tests/catch/include/hip_test_context.hh @@ -119,7 +119,7 @@ class TestContext { static std::string getEnvVar(std::string var) { #if defined(_WIN32) - rsize_t MAX_LEN = 4096; + constexpr rsize_t MAX_LEN = 4096; char dstBuf[MAX_LEN]; size_t dstSize; if (!::getenv_s(&dstSize, dstBuf, MAX_LEN, var.c_str())) {