Author: andreas
Date: 2005-09-10 21:37:24 +0100 (Sat, 10 Sep 2005)
New Revision: 4439
Modified:
trunk/pgadmin3/src/schema/pgTable.cpp
Log:
msvc fix
Modified: trunk/pgadmin3/src/schema/pgTable.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgTable.cpp 2005-09-10 19:52:44 UTC (rev 4438)
+++ trunk/pgadmin3/src/schema/pgTable.cpp 2005-09-10 20:37:24 UTC (rev 4439)
@@ -468,12 +468,13 @@
if (rowsCounted)
{
- if (!estimatedRows || (estimatedRows == 1000 && rows != 1000))
+ if (!estimatedRows || (estimatedRows == 1000 && rows.GetValue() != 1000))
canHint = (rows >= 20);
else
{
- wxULongLong quot = (wxLongLong_t)(rows.GetValue() *10. / estimatedRows);
- canHint = ((quot > 12 || quot < 8) && (rows.GetValue() < estimatedRows-20. || rows.GetValue() >
estimatedRows+20.));
+ double rowsDbl=(wxLongLong_t)rows.GetValue();
+ double quot=rowsDbl *10. / estimatedRows;
+ canHint = ((quot > 12 || quot < 8) && (rowsDbl < estimatedRows-20. || rowsDbl > estimatedRows+20.));
}
}
else if (estimatedRows == 1000)