소스 검색

Merge pull request #3497 from richardkchapman/superfile-compile-issue

HPCC-8018 - Dynamic array causes Windows build failure

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 12 년 전
부모
커밋
3f0d071a27
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dali/base/dadfs.cpp

+ 1 - 1
dali/base/dadfs.cpp

@@ -3902,7 +3902,7 @@ struct SuperFileSubTreeCache
         if (!name)
             name = "UNKNOWN";
         // HACK: This is temporary and should not linger beyond 3.8.x
-        unsigned subList[n];
+        unsigned *subList = (unsigned *) alloca(n * sizeof(unsigned));
         memset(subList, 0, n * sizeof(unsigned));
         // HACKEND
         ForEach (*subit) {