From b0ed768304a84b0d1ca6cdedf2ca1f38dbdd2692 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Dec 2011 16:59:16 +0000 Subject: [PATCH] (svn r23573) -Fix (r23571): MSVC doesn't like variable array sizes --- src/strgen/strgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 21f4d07fd8..795c244d48 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -1316,7 +1316,7 @@ struct LanguageWriter { */ void WriteLang(const StringData &data) { - uint in_use[data.tabs]; + uint *in_use = AllocaM(uint, data.tabs); for (size_t tab = 0; tab < data.tabs; tab++) { uint n = data.CountInUse(tab);