summaryrefslogtreecommitdiff
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
commit687d3b8e68e59946d12e996f1aa7d28cfb2d414d (patch)
tree38b19fb0fdec2472bd603a399031be288661c48e
parent37c020bc721193a85b659a8f6bda6edcb36759a9 (diff)
Both argumensts to Min must be of same type
-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 fd941e08a4..a4322ee598 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;