summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-10 18:40:30 +0100
committerDavid Tardon <dtardon@redhat.com>2012-03-12 08:53:53 +0100
commitbd6310886dc4351a8ac3ed3ee9a4f65d2a0e005c (patch)
tree9a1fe8de7b72e24dba552319aad7f7fd24dd404f /connectivity
parente54a81fbb05b932df67a50c2599bcdd07a94fad4 (diff)
WaE: enumeral and non-enumeral type in conditional expression
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/AResultSet.cxx2
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
}
// -------------------------------------------------------------------------