diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-10 18:40:30 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:53 +0100 |
commit | bd6310886dc4351a8ac3ed3ee9a4f65d2a0e005c (patch) | |
tree | 9a1fe8de7b72e24dba552319aad7f7fd24dd404f /connectivity | |
parent | e54a81fbb05b932df67a50c2599bcdd07a94fad4 (diff) |
WaE: enumeral and non-enumeral type in conditional expression
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/ado/AResultSet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx index 049947670c38..3c83cc0acad3 100644 --- a/connectivity/source/drivers/ado/AResultSet.cxx +++ b/connectivity/source/drivers/ado/AResultSet.cxx @@ -285,7 +285,7 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException) PositionEnum_Param aPos; m_pRecordSet->get_AbsolutePosition(&aPos); - return (aPos > 0) ? aPos : m_nRowPos; + return (aPos > 0) ? static_cast<sal_Int32>(aPos) : m_nRowPos; // return the rowcount from driver if the driver doesn't support this return our count } // ------------------------------------------------------------------------- |