summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-31 22:23:32 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-03-31 22:24:37 +0200
commit5ed1dbb51a4393be4ee1587f5ded103515139e9a (patch)
tree8ceb8586c452b928f648100f7f186b1cdb4b048a
parentc4745302f3bf6e9d4f94033391979deb8437c788 (diff)
coverity#735355: Operands don't affect result
Change-Id: I772d3535bc2e84ec066a16666dedf302fc9f43b7
-rw-r--r--dbaccess/source/ui/dlg/indexdialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index 4d646974aa68..50c874248831 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -386,7 +386,7 @@ DBG_NAME(DbaIndexDialog)
if (m_pIndexes->end() == m_pIndexes->find(sNewIndexName))
break;
}
- if ((i>0x7FFFFFFF) || (i<0))
+ if (i == 0x7FFFFFFF)
{
OSL_FAIL("DbaIndexDialog::OnNewIndex: no free index name found!");
// can't do anything ... of course we try another base, but this could end with the same result ...