git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 06dbd61) | patch
Use C library functions instead of Abs() for int64
2022年10月10日 06:51:07 +0000 (08:51 +0200)
2022年10月10日 07:01:17 +0000 (09:01 +0200)
commit 357cfefb09115292cfb98d504199e6df8201c957
Use C library functions instead of Abs() for int64

Instead of Abs() for int64, use the C standard functions labs() or
llabs() as appropriate. Define a small wrapper around them that
matches our definition of int64. (labs() is C90, llabs() is C99.)

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
contrib/btree_gist/btree_cash.c diff | blob | blame | history
contrib/btree_gist/btree_int8.c diff | blob | blame | history
src/backend/utils/adt/datetime.c diff | blob | blame | history
src/backend/utils/adt/dbsize.c diff | blob | blame | history
src/include/c.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /