提交 d63de337 编写于 作者: T Tom Lane

round() is not portable. Use rint().

上级 295e7dc9
......@@ -14,6 +14,8 @@
*/
#include "postgres.h"
#include <math.h>
#include "access/genam.h"
#include "access/gist_private.h"
#include "catalog/index.h"
......@@ -420,7 +422,7 @@ calculatePagesPerBuffer(GISTBuildState *buildstate, int levelStep)
*/
pagesPerBuffer = 2 * pow(avgIndexTuplesPerPage, levelStep);
return round(pagesPerBuffer);
return (int) rint(pagesPerBuffer);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册