From d63abbd94f9bf14fec6111bea66696daf4c774a9 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 27 Jul 2021 12:57:47 +0200 Subject: [PATCH] fix clang-tidy warnings --- examples/ahb_bfm/sc_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ahb_bfm/sc_main.cpp b/examples/ahb_bfm/sc_main.cpp index 8bc1063..163c014 100644 --- a/examples/ahb_bfm/sc_main.cpp +++ b/examples/ahb_bfm/sc_main.cpp @@ -86,19 +86,19 @@ public: wait(HCLK.posedge_event()); HSEL.write(true); tlm::tlm_generic_payload gp; - uint8_t data[8]; + std::array data; data[0]=2; data[1]=4; gp.set_address(0x1000); gp.set_data_length(8); - gp.set_data_ptr(data); + gp.set_data_ptr(data.data()); gp.set_streaming_width(8); gp.set_command(tlm::TLM_WRITE_COMMAND); sc_time delay; isck->b_transport(gp, delay); gp.set_address(0x1020); gp.set_data_length(8); - gp.set_data_ptr(data); + gp.set_data_ptr(data.data()); gp.set_streaming_width(8); gp.set_command(tlm::TLM_READ_COMMAND); delay=SC_ZERO_TIME;