mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
use alloca for compatibility with VC++
This commit is contained in:
1 parent
3f44c3541a
commit
3bc492ec69
1 file changed
+1
-1
@@ -631,7 +631,7 @@ match_type(PgfMarshaller *this, PgfUnmarshaller *u, PgfType ty)
|
||||
}
|
||||
|
||||
Py_ssize_t n_exprs = PySequence_Size(type->exprs);
|
||||
PgfExpr exprs[n_exprs];
|
||||
PgfExpr *exprs = (PgfExpr *) alloca(n_exprs*sizeof(PgfExpr));
|
||||
for (Py_ssize_t i = 0; i < n_exprs; i++) {
|
||||
exprs[i] = (PgfExpr)PySequence_ITEM(type->exprs, i);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user