Skip to content

Commit

Permalink
fix compile for VS2015
Browse files Browse the repository at this point in the history
Summary:
Without the cast, the build will break on Windows.
Closes #1982

Differential Revision: D4690462

Pulled By: ajkr

fbshipit-source-id: c493b6c
  • Loading branch information
Min Wei authored and facebook-github-bot committed Mar 10, 2017
1 parent fe18356 commit 900c62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/histogram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void HistogramStat::Data(HistogramData * const data) const {
data->median = Median();
data->percentile95 = Percentile(95);
data->percentile99 = Percentile(99);
data->max = max();
data->max = static_cast<double>(max());
data->average = Average();
data->standard_deviation = StandardDeviation();
}
Expand Down

0 comments on commit 900c62b

Please sign in to comment.