Skip to content

Commit

Permalink
Merge pull request #3772 from yebblies/linesplice
Browse files Browse the repository at this point in the history
[DDMD] Remove unnecessary line splicing in clone.c
  • Loading branch information
9rnsr committed Jul 16, 2014
1 parent 64745c1 commit 271be02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clone.c
Expand Up @@ -769,9 +769,9 @@ FuncDeclaration *buildXtoHash(StructDeclaration *sd, Scope *sc)
FuncDeclaration *fop = new FuncDeclaration(declLoc, Loc(), id, STCstatic, tf);

const char *code =
"size_t h = 0;"\
"foreach (i, T; typeof(p.tupleof))"\
" h += typeid(T).getHash(cast(const void*)&p.tupleof[i]);"\
"size_t h = 0;"
"foreach (i, T; typeof(p.tupleof))"
" h += typeid(T).getHash(cast(const void*)&p.tupleof[i]);"
"return h;";
fop->fbody = new CompileStatement(loc, new StringExp(loc, (char *)code));

Expand Down

0 comments on commit 271be02

Please sign in to comment.