From 06a87d77e62bad8ded0a384a70e13114011bf060 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 24 Jun 2014 23:38:49 +0400 Subject: [PATCH] Fix compile on Windows: use rint() instead of round(). --- sql/sql_explain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } };