Fix compile on Windows: use rint() instead of round().

This commit is contained in:
Sergei Petrunia 2014-06-24 23:38:49 +04:00
parent 1dd5d31c73
commit 06a87d77e6

View file

@ -30,7 +30,7 @@ public:
ha_rows get_avg_rows()
{
return r_scans ? round((double) r_rows / r_scans): 0;
return r_scans ? (ha_rows)rint((double) r_rows / r_scans): 0;
}
};