Skip to content

Commit

Permalink
Avoid excessively long CTFE stacks due to citing the full input argum…
Browse files Browse the repository at this point in the history
…ent.

See #69.

fixuo
  • Loading branch information
s-ludwig committed Oct 25, 2019
1 parent c1c4928 commit 6032ae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/diet/html.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ template compileHTMLDietFile(string filename, ALIASES...)
template compileHTMLDietFileString(string filename, alias contents, ALIASES...)
{
import std.conv : to;
enum _diet_files = collectFiles!(filename, contents);
private static immutable _diet_files = collectFiles!(filename, contents);

version (DietUseCache)
{
Expand Down
2 changes: 1 addition & 1 deletion source/diet/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Document parseDiet(alias TR = identity)(string text, string filename = "string")
}

/// Ditto
Document parseDiet(alias TR = identity)(InputFile[] files)
Document parseDiet(alias TR = identity)(const(InputFile)[] files)
if (is(typeof(TR(string.init)) == string))
{
import diet.traits;
Expand Down

0 comments on commit 6032ae1

Please sign in to comment.