Skip to content

Commit

Permalink
making const vars const
Browse files Browse the repository at this point in the history
  • Loading branch information
elstehle committed Jul 13, 2022
1 parent ea79a81 commit 17dcbfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/io/fst/agent_dfa.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DFASimulationCallbackWrapper {
StateVectorT const& new_state,
SymbolIndexT const& symbol_id)
{
uint32_t count = transducer_table(old_state.Get(0), symbol_id);
uint32_t const count = transducer_table(old_state.Get(0), symbol_id);
if (write) {
for (uint32_t out_char = 0; out_char < count; out_char++) {
out_it[out_count + out_char] = transducer_table(old_state.Get(0), symbol_id, out_char);
Expand All @@ -117,7 +117,7 @@ class DFASimulationCallbackWrapper {
__host__ __device__ __forceinline__ void TearDown() {}

public:
TransducerTableT transducer_table;
TransducerTableT const transducer_table;
TransducedOutItT out_it;
TransducedIndexOutItT out_idx_it;
uint32_t out_count;
Expand Down

0 comments on commit 17dcbfd

Please sign in to comment.