diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2014-06-24 23:38:49 +0400 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2014-06-24 23:38:49 +0400 |
commit | 06a87d77e62bad8ded0a384a70e13114011bf060 (patch) | |
tree | 0edaff389ff2e0f767b9bd062b8c7f3e951df1e8 | |
parent | 1dd5d31c736709ebd674e308333fad2c1561d708 (diff) | |
download | mariadb-git-06a87d77e62bad8ded0a384a70e13114011bf060.tar.gz |
Fix compile on Windows: use rint() instead of round().
-rw-r--r-- | sql/sql_explain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h index 417cfc0fffc..f9279a406f7 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -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; } }; |