Skip to content

Commit

Permalink
Fix Windows warning and Vera style complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
derekbruening committed Mar 26, 2024
1 parent b6c1a28 commit 6aad1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/drcachesim/scheduler/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ scheduler_tmpl_t<RecordType, ReaderType>::read_traced_schedule()
// disk2index would then hold 1,2,0,3, but we want 2,0,1,3.
std::vector<output_ordinal_t> disk2output(disk2index.size());
for (size_t i = 0; i < disk2index.size(); ++i) {
disk2output[disk2index[i]] = i;
disk2output[disk2index[i]] = static_cast<output_ordinal_t>(i);
}
for (int disk_idx = 0; disk_idx < static_cast<output_ordinal_t>(outputs_.size());
++disk_idx) {
Expand Down
3 changes: 2 additions & 1 deletion clients/drcachesim/tests/scheduler_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3487,9 +3487,10 @@ test_replay_as_traced_sort()
if (status == scheduler_t::STATUS_OK) {
assert(memref.marker.tid == TID_BASE + INDICES[i]);
if (memref.marker.type == TRACE_TYPE_MARKER &&
memref.marker.marker_type == TRACE_MARKER_TYPE_CPU_ID)
memref.marker.marker_type == TRACE_MARKER_TYPE_CPU_ID) {
assert(static_cast<int>(memref.marker.marker_value) ==
CPUIDS[INDICES[i]]);
}
} else
assert(status == scheduler_t::STATUS_EOF);
}
Expand Down

0 comments on commit 6aad1dc

Please sign in to comment.