Skip to content

Commit

Permalink
Silence "narrowing conversion" warning in Cygwin.
Browse files Browse the repository at this point in the history
Fixes #151.

The compiler warned about a "narrowing conversion" from `unsigned int`
to `long`.  It's really more of a signedness warning.
  • Loading branch information
jtv committed Jan 29, 2019
1 parent ac8d50e commit 849af9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


pqxx::field::field(const pqxx::row &R, pqxx::row::size_type C) noexcept :
m_col{C},
m_col{static_cast<decltype(m_col)>(C)},
m_home{R.m_result},
m_row{pqxx::result_size_type(R.m_index)}
{
Expand Down

0 comments on commit 849af9d

Please sign in to comment.