mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix compile on Windows: use rint() instead of round().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user