summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-25 00:47:45 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-25 00:47:45 +0200
commit7a48a6c87ffdc8d11a758205bdd6e67c990e88ed (patch)
tree95a952944b9ccdda06fc379d0a88234b11c3b630 /connectivity/source
parentNo need to define _X86_ and it confuses a 64-bit Windows compilation (diff)
downloadcore-7a48a6c87ffdc8d11a758205bdd6e67c990e88ed.tar.gz
core-7a48a6c87ffdc8d11a758205bdd6e67c990e88ed.zip
Both argumensts to Min must be of same type
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 42a8cc689137..044e66416a5b 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1313,7 +1313,7 @@ BOOL ODbaseTable::CreateFile(const INetURLObject& aFile, BOOL& bCreateMemo)
{
throwInvalidColumnType(STR_INVALID_COLUMN_PRECISION, aName);
}
- (*m_pFileStream) << (BYTE) Min((ULONG)nPrecision, 255UL); //Feldlaenge
+ (*m_pFileStream) << (BYTE) Min((unsigned)nPrecision, 255U); //Feldlaenge
nRecLength = nRecLength + (USHORT)::std::min((USHORT)nPrecision, (USHORT)255UL);
(*m_pFileStream) << (BYTE)0; //Nachkommastellen
break;