Skip to content

Commit b1de19f

Browse files
committed
[HTML] fix clang build error
1 parent 1e4191b commit b1de19f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

engine/sim/plot.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ void plot_t::analyze_stats()
210210

211211
if ( dps_plot_display_delta )
212212
{
213-
auto diff = p->dps_plot_data[ i ].empty() ? 0.0 : data.value - p->dps_plot_data[ i ].back().value;
214-
p->dps_plot_delta_data[ i ].emplace_back( data.plot_step, diff, data.error );
213+
plot_data_t delta;
214+
delta.value = p->dps_plot_data[ i ].empty() ? 0.0 : data.value - p->dps_plot_data[ i ].back().value;
215+
delta.error = data.error;
216+
delta.plot_step = data.plot_step;
217+
p->dps_plot_delta_data[ i ].push_back( delta );
215218
}
216219

217220
p->dps_plot_data[ i ].push_back( data );

0 commit comments

Comments
 (0)