Skip to content

Commit

Permalink
Fix variable type casting warnings (#131)
Browse files Browse the repository at this point in the history
* fix variable casting

* typo
  • Loading branch information
lee30sonia committed Aug 8, 2022
1 parent 514a3df commit 8ce7efe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/kitty/constructors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,10 +1256,11 @@ bool create_from_formula( TT& tt, const std::string& expression, const std::vect

/* create input truth tables */
std::vector<TT> inputs_tts( tt.num_vars() );
for ( uint8_t i = 0u; i < tt.num_vars(); ++i )
assert( tt.num_vars() < 256 );
for ( uint32_t i = 0u; i < tt.num_vars(); ++i )
{
auto var = tt.construct();
create_nth_var( var, i );
create_nth_var( var, static_cast<uint8_t>( i ) );
inputs_tts[i] = var;
}

Expand Down

0 comments on commit 8ce7efe

Please sign in to comment.