Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1269 from rainers/fix_benchmarks
Browse files Browse the repository at this point in the history
fix benchmarks
  • Loading branch information
MartinNowak committed May 14, 2015
2 parents 4b918e0 + 42be3a7 commit e840f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/aabench/stomper.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ExpRandom

size_t front()
{
return cast(size_t)lround(mean * -log(uniform!"()"(0.0, 1.0, gen)));
return cast(size_t)(mean * -log(uniform!"()"(0.0, 1.0, gen)) + 0.5);
}

alias gen this;
Expand Down
2 changes: 1 addition & 1 deletion benchmark/gcbench/vdparser.extra/vdc/ast/type.d
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class ModifiedType : Type

auto type = getType();
type.semantic(sc);
ti.next = type.typeinfo;
ti.base = type.typeinfo;

typeinfo = ti;
}
Expand Down

0 comments on commit e840f58

Please sign in to comment.