Commit 357cfef
committed
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.com1 parent 06dbd61 commit 357cfef
File tree
5 files changed
+16
-7
lines changed- contrib/btree_gist
- src
- backend/utils/adt
- include
5 files changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4468 | 4468 | | |
4469 | 4469 | | |
4470 | 4470 | | |
4471 | | - | |
| 4471 | + | |
4472 | 4472 | | |
4473 | 4473 | | |
4474 | 4474 | | |
| |||
4569 | 4569 | | |
4570 | 4570 | | |
4571 | 4571 | | |
4572 | | - | |
4573 | | - | |
| 4572 | + | |
| 4573 | + | |
4574 | 4574 | | |
4575 | 4575 | | |
4576 | 4576 | | |
| |||
4642 | 4642 | | |
4643 | 4643 | | |
4644 | 4644 | | |
4645 | | - | |
| 4645 | + | |
4646 | 4646 | | |
4647 | 4647 | | |
4648 | 4648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1285 | 1294 | | |
1286 | 1295 | | |
1287 | 1296 | | |
| |||
0 commit comments