WaE: enumeral and non-enumeral type in conditional expression

This commit is contained in:
David Tardon 2012-03-10 18:40:30 +01:00
parent e54a81fbb0
commit bd6310886d

View file

@ -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
}
// -------------------------------------------------------------------------