mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-21 11:19:02 +02:00
Fix for mingw32 segfault
This commit is contained in:
@@ -1739,7 +1739,11 @@ Statement *ForeachStatement::semantic(Scope *sc)
|
||||
default: assert(0);
|
||||
}
|
||||
const char *r = (op == TOKforeach_reverse) ? "R" : "";
|
||||
#ifdef __MINGW32__
|
||||
int j = sprintf(fdname, "_aApply%s%.*s%lu", r, 2, fntab[flag], dim);
|
||||
#else
|
||||
int j = sprintf(fdname, "_aApply%s%.*s%zu", r, 2, fntab[flag], dim);
|
||||
#endif
|
||||
assert(j < sizeof(fdname));
|
||||
//LDC: Build arguments.
|
||||
Arguments* args = new Arguments;
|
||||
|
||||
Reference in New Issue
Block a user