Skip to content

Commit

Permalink
Fix compile on Windows: use rint() instead of round().
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrunia committed Jun 24, 2014
1 parent 1dd5d31 commit 06a87d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_explain.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Table_access_tracker

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;
}
};

Expand Down

0 comments on commit 06a87d7

Please sign in to comment.