mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Remove unnecessary uses of Abs()
Use C standard abs() or fabs() instead. Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/4beb42b5-216b-bce8-d452-d924d5794c63%40enterprisedb.com
This commit is contained in:
@ -83,7 +83,7 @@ intr2num(const Interval *i)
|
||||
static float8
|
||||
gbt_intv_dist(const void *a, const void *b, FmgrInfo *flinfo)
|
||||
{
|
||||
return (float8) Abs(intr2num((const Interval *) a) - intr2num((const Interval *) b));
|
||||
return fabs(intr2num((const Interval *) a) - intr2num((const Interval *) b));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user